Difference between revisions of "OnHitWith"
Jump to navigation
Jump to search
imported>Ecaponi |
imported>Deathbane27 |
||
Line 5: | Line 5: | ||
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. | ||
---- | |||
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 | |||
[[Category: Commands]] | [[Category: Commands]] |
Revision as of 08:30, 21 May 2006
Syntax:
begin OnHitWith ObjectID (optional)
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