Talk:OnHit
Tegid 20:20, 3 April 2006 (EDT):This must be an Actor and not an Object correct? So this script is useless when attempting to apply it to a weapon to see if it hit someone?
- Dev akm 16:16, 18 September 2007 (EDT) -- Very good question. Nobody knows the answer?
- There's OnTriggerActor and OnTrigger I believe. They activate an object on being hit with something. --S14 01:07, 3 September 2010 (EDT)
- Hehe, that question is four years old. There are a lot of old questions on here, and unfortunately I can confirm that neither Tegid nor Dev akm check here any longer (wish that weren't so, both were great guys). Anyway, no, Trigger refers to objects with a TriggerZone - which, IIRC, is a specific part of a NIF file. The best (only?) way to determine if a given weapon has hit something is to give that weapon a scripted effect enchantment that reports that information.
- Dragoon Wraith TALK 10:33, 3 September 2010 (EDT)
Creatures[edit source]
Are you sure it doesn't work on creatures, or doesn't work on Base Object FormIDs (rather than Reference Editor IDs)?--Haama 19:18, 26 January 2008 (EST)
- No answer, removed the comment.--Haama 12:33, 15 February 2008 (EST)
It does work on creatures, they just have to be a persistant ref. --Speedo 16:07, 16 February 2008 (EST)
- Thanks, that's what I figured (I've made the same mistake myself :P)--Haama 16:13, 16 February 2008 (EST)
Adding A Note[edit source]
Should we add a note on this page that OnHit has nothing whatsoever to do with when a weapon actually strikes someone? It doesn't say anything at all like that on this page, but we get a lot of topics in the CS forum where people think it does for no reason at all. I'm asking first because it wouldn't really fit into the standard article style, and it seems a bit rude to say "No it doesn't do what it doesn't say it does". Talkie Toaster 11:49, 15 February 2008 (EST)
- What does it do when placed on an item (or will the script even compile)?
- Otherwise, preventing confusion is paramount. Here in particular I think it'd help to get rid of the "weapon or spell" line up top (I can't think of another way).
- Do the revisions work?--Haama 12:39, 15 February 2008 (EST)
- Yep, thanks :). Talkie Toaster 12:22, 16 February 2008 (EST)