Difference between revisions of "OnDeath"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Axle12693
imported>Longcat
 
Line 5: Line 5:


This block will be run once when the scripted actor is killed by the specified ActorID. If no parameter (parameter meaning, in this case, "superchampion", or actorid) is used, the block will be run when the scripted actor dies.  
This block will be run once when the scripted actor is killed by the specified ActorID. If no parameter (parameter meaning, in this case, "superchampion", or actorid) is used, the block will be run when the scripted actor dies.  
*Note:
If a script calls [[SayTo]] and the actor dies while talking, ondeath triggers AFTER sayto is done.


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

Latest revision as of 07:23, 10 April 2010

Syntax:

 begin OnDeath ActorID (optional)

Example:

 begin OnDeath SuperChampion 

This block will be run once when the scripted actor is killed by the specified ActorID. If no parameter (parameter meaning, in this case, "superchampion", or actorid) is used, the block will be run when the scripted actor dies.

  • Note:

If a script calls SayTo and the actor dies while talking, ondeath triggers AFTER sayto is done.