OnTriggerLeave

From the Fallout3 GECK Wiki
Jump to navigation Jump to search

Syntax:

 begin OnTriggerLeave TriggeringRefID (optional)

This is reported when a ref is removed from the list because it is no longer colliding with the trigger. The removed ref is set as the action ref on the trigger. Only one leave action may be triggered per frame and a leave action can never be triggered in the same frame as an enter action. If two refs leave in the same frame only one ref is removed from the list so that the other ref will be removed next frame. If a ref leaves in the same frame that another ref enters, the leaving ref is not removed from the list so that it will be removed next frame.

If the parameter is specified, the block is run only if the specified ref is the one leaving the trigger box. Otherwise, the block is run when any ref leaves the trigger box.

See Also[edit | edit source]