Difference between revisions of "GetActionRef"
Jump to navigation
Jump to search
imported>Tarmadon |
imported>Scruggs (only returns most recently interacting object) |
||
Line 3: | Line 3: | ||
Returns the reference currently interacting with the scripted object. '''Valid only when the object is being activated or triggered.''' It will only return a value during the frame after the object has been interacted with. This means it is generally only useful inside an [[OnActivate]] or [[OnTrigger]] block. | Returns the reference currently interacting with the scripted object. '''Valid only when the object is being activated or triggered.''' It will only return a value during the frame after the object has been interacted with. This means it is generally only useful inside an [[OnActivate]] or [[OnTrigger]] block. If more than one object is interacting with the object (for instance, several objects colliding with the same trigger zone), only the most recently interacting object will be returned by this function. | ||
==See Also== | ==See Also== |
Revision as of 09:21, 21 July 2006
Syntax:
set refVar to GetActionRef
Returns the reference currently interacting with the scripted object. Valid only when the object is being activated or triggered. It will only return a value during the frame after the object has been interacted with. This means it is generally only useful inside an OnActivate or OnTrigger block. If more than one object is interacting with the object (for instance, several objects colliding with the same trigger zone), only the most recently interacting object will be returned by this function.