Difference between revisions of "OnAlarmVictim"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Ecaponi
 
imported>JOG
(Moved to "Category: Blocktypes")
Line 13: Line 13:
[[OnAlarm]]  
[[OnAlarm]]  


[[Category: Commands]]
[[Category: Blocktypes]]

Revision as of 02:54, 26 May 2006

Syntax:

 begin OnAlarmVictim CrimeType, Victim (optional) 

Example:

 begin OnAlarmVictim 0 
 begin OnAlarmVictim 3, player 

This block will be run once when the scripted actor receives an alarm of the specified crime type committed against the Victim (actorID). If only crime type is specified, this block will be run whenever the scripted actor receives any alarm for the given crime type.

If more information about the crime is needed, GetCrimeKnown can be used inside the OnAlarm block to determine if a particular criminal/victim combination has occurred.

See Also

Crime Types
OnAlarm