on_projectile_hit(func_name)

Parameters:
func_name (string) name of the function, or "" to unregister the event
 
Returns:
none

Description:
Register a callback function for whenever any projectile hits an object.

When the callback is executed, the following parameters are passed to it:
 - (string) type of object that was hit (can be "human", "mover", "vehicle", "item", "world", or "other")
 - (string) name of the object that was hit
 - (string) name of the weapon type from which the projectile originated (or nil if the projectile did not originate from a weapon)

 

back to indexSR3 Script Action Documentation
Last updated: Tue, 09 Aug 2011 11:32:16