Difference between revisions of "OnHit"
Jump to navigation
Jump to search
no edit summary
imported>Quetzilla |
imported>Quetzilla |
||
Line 9: | Line 9: | ||
*Using [[GetDetected]] in an OnHit block doesn't really work. The OnHit block happens just AFTER the hit occurs, and the way Actor detection works, the hit causes an immediate awareness spike and so GetDetected will always come up as true. It will NOT return whether the Actor was detected previous to the hit. | *Using [[GetDetected]] in an OnHit block doesn't really work. The OnHit block happens just AFTER the hit occurs, and the way Actor detection works, the hit causes an immediate awareness spike and so GetDetected will always come up as true. It will NOT return whether the Actor was detected previous to the hit. | ||
*Only works on NPCs and Creatures, and will not work on items. | *Only works on NPCs and Creatures, and will not work on items. | ||
==See Also== | |||
*[[OnHit]] | |||
[[Category: Blocktypes]] | [[Category: Blocktypes]] |