OnTrigger

From the Oblivion ConstructionSet Wiki
Revision as of 22:51, 21 September 2008 by imported>Antares (Adding OnTriggerActor to the See Also section, pretty funny that it hasn't been done until now.)
Jump to navigation Jump to search

Syntax:

 begin OnTrigger TriggeringRefID

Example:

 begin OnTrigger
 begin OnTrigger player 

This block will be run once when something triggers the scripted object by colliding with it. If you specify a TriggeringRefID, the block will only run when that specific reference triggers the object; otherwise, the block will run when anything triggers the scripted object.

See Also

GetActionRef
OnTriggerActor