Difference between revisions of "OnTriggerEnter - ObjectReference"
Jump to navigation
Jump to search
imported>Heecf |
imported>Cipscis |
||
Line 1: | Line 1: | ||
[[Category:Scripting]] | |||
[[Category:Papyrus]] | |||
[[Category:Events]] | |||
'''Member of:''' [[ObjectReference Script (Papyrus)]] | |||
Event called when the object reference is a trigger volume and has been entered. | |||
== Syntax == | |||
<source lang="papyrus"> | |||
Event OnTriggerEnter(ObjectReference akActionRef) | |||
</source> | |||
== Parameters == | |||
*akActionRef: The [[ObjectReference Script (Papyrus)|ObjectReference]] that entered the volume. | |||
== Examples == | |||
<source lang="papyrus"> | |||
Event OnTriggerEnter(ObjectReference akActionRef) | |||
Debug.Trace(akActionRef + " just entered us!") | |||
EndEvent | |||
</source> | |||
== Notes == | |||
This event can be received out of order with [[OnTriggerLeave - ObjectReference|OnTriggerLeave]], so it's ideal to keep a count instead of a simple true/false value for when things are inside the trigger. | |||
== See Also == | |||
*[[ObjectReference Script]] | |||
*[[OnTrigger - ObjectReference]] | |||
*[[OnTriggerLeave - ObjectReference]] | |||
*[[GetTriggerObjectCount - ObjectReference]] | |||
Revision as of 19:10, 13 August 2012
Member of: ObjectReference Script (Papyrus)
Event called when the object reference is a trigger volume and has been entered.
Syntax
Event OnTriggerEnter(ObjectReference akActionRef)
Parameters
- akActionRef: The ObjectReference that entered the volume.
Examples
Event OnTriggerEnter(ObjectReference akActionRef)
Debug.Trace(akActionRef + " just entered us!")
EndEvent
Notes
This event can be received out of order with OnTriggerLeave, so it's ideal to keep a count instead of a simple true/false value for when things are inside the trigger.