OnTriggerEnter

Revision as of 16:51, 28 February 2007 by imported>Kkuhlmann
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Syntax:

 begin OnTriggerEnter TriggeringRefID (optional) 

This is reported when a new ref is added to the trigger's list. The newly added ref is set as the action ref on the trigger (as reported by IsActionRef and GetActionRef). Only one enter action may be triggered per frame. If two refs enter the trigger the same frame, only one is added to the list so that the other ref will be added next frame. (Meaning you are guaranteed to always get an OnTriggerEnter for every actor that enters a trigger box.)

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

See Also