OnTriggerLeave - ObjectReference

From the CreationKit Wiki
Revision as of 19:10, 13 August 2012 by imported>Cipscis (Reverted edits by Heecf (talk) to last revision by Jlundin)
Jump to navigation Jump to search

Member of: ObjectReference Script (Papyrus)

Event called when the object reference is a trigger volume and has been left.

Syntax

Event OnTriggerLeave(ObjectReference akActionRef)

Parameters

Examples

Event OnTriggerLeave(ObjectReference akActionRef)
  Debug.Trace(akActionRef + " just left us!")
EndEvent

Notes

This event can be received out of order with OnTriggerEnter, so it's ideal to keep a count instead of a simple true/false value for when things are inside the trigger.

See Also