Difference between revisions of "OnHitWith"
Jump to navigation
Jump to search
imported>JOG (Moved to "Category: Blocktypes") |
imported>Quetzilla |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
'''Syntax:''' | '''Syntax:''' | ||
begin OnHitWith ''ObjectID | begin OnHitWith ''ObjectID'' | ||
'''Example:''' | '''Example:''' | ||
begin OnHitWith SuperWeapon | begin OnHitWith SuperWeapon | ||
This block will be run once when the scripted actor is hit by the specified weapon. If no parameter is used, the block will be run when the scripted actor is hit by any weapon. | This block will be run once when the scripted actor is hit by the specified weapon. If no parameter is used, the block will be run when the scripted actor is hit by any weapon. | ||
<br> | |||
---- | ---- | ||
<br> | |||
This can also be used on Activators as well as Actors. However, Activators only recognize Ammo hits with this function. So, the following will work on Activators: | This can also be used on Activators as well as Actors. However, Activators only recognize Ammo hits with this function. So, the following will work on Activators: | ||
Begin OnHitWith Arrow1Iron | Begin OnHitWith Arrow1Iron | ||
Line 14: | Line 14: | ||
Begin OnHitWith WeapSteelClaymore | Begin OnHitWith WeapSteelClaymore | ||
Begin OnHitWith WeapElvenBow | Begin OnHitWith WeapElvenBow | ||
==See Also== | |||
*[[OnHit]] | |||
*[[OnMagicEffectHit]] | |||
[[Category: Blocktypes]] | [[Category: Blocktypes]] |
Latest revision as of 23:37, 28 May 2008
Syntax:
begin OnHitWith ObjectID
Example:
begin OnHitWith SuperWeapon
This block will be run once when the scripted actor is hit by the specified weapon. If no parameter is used, the block will be run when the scripted actor is hit by any weapon.
This can also be used on Activators as well as Actors. However, Activators only recognize Ammo hits with this function. So, the following will work on Activators:
Begin OnHitWith Arrow1Iron
But the following will NOT:
Begin OnHitWith WeapSteelClaymore Begin OnHitWith WeapElvenBow