Difference between revisions of "OnTrigger"
Jump to navigation
Jump to search
imported>Quetzilla |
imported>Antares (OnTrigger now links to GetActionRef which is a useful function inside an OnTrigger block.) |
||
Line 6: | Line 6: | ||
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. | 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]] | |||
[[Category: Blocktypes]] | [[Category: Blocktypes]] |
Revision as of 21:39, 7 September 2008
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.