OnTrigger - ObjectReference

From the CreationKit Wiki
Revision as of 18:57, 24 October 2011 by imported>Jlundin
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: ObjectReference Script

Event called when the object reference is a trigger and has been triggered. This event will be sent every so often while a reference stays inside the trigger box.

Syntax

Event OnTrigger(ObjectReference akActionRef)

Parameters

Examples

Event OnTrigger(ObjectReference akActionRef)
  Debug.Trace(akActionRef + " just hit us!")
EndEvent

Notes

This event is sent repeatedly, so care should be taken not to tie up the script system unnecessarily with a long complicated handler. Try using the trigger enter and leave events instead.

See Also