Difference between revisions of "OnTrigger"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Kkuhlmann
imported>Kkuhlmann
Line 1: Line 1:
'''Syntax:'''
'''Syntax:'''
   begin OnTrigger TriggeringRefID (optional)
   begin OnTrigger
'''Example:'''
  begin OnTrigger player


This block will be run every frame 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 every frame when something triggers the scripted object by colliding with it. Note that the action ref is NOT set (so [[IsActionRef]] and [[GetActionRef]] should not be used inside this blocktype).


===See Also===
===See Also===

Revision as of 17:36, 28 February 2007

Syntax:

 begin OnTrigger

This block will be run every frame when something triggers the scripted object by colliding with it. Note that the action ref is NOT set (so IsActionRef and GetActionRef should not be used inside this blocktype).

See Also