on_incapacitated(func_name, name)

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

Description:
Register a callback function for when an NPC becomes incapacitated (as opposed to dead).

When the callback is executed, the following parameters are passed to it:
 - (string) name of the NPC

Note that this function only works for revivable characters. To set up an "on death" callback for a non-revivable character, use the on_death function.

 

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