Difference between revisions of "GetActionRef"

143 bytes added ,  13:14, 15 August 2009
m
Robot: Automated text replacement (-\[\[Category:(.*?)\(GECK 1.0\)\]\] +Category:\1(GECK 1.1))
imported>PoHa!
(Copied info from CS Wiki; removed incomplete tag)
imported>Geckbot
m (Robot: Automated text replacement (-\[\[Category:(.*?)\(GECK 1.0\)\]\] +Category:\1(GECK 1.1)))
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
'''Syntax:'''
=='''Description'''==
set refVar to GetActionRef
 


Returns the reference currently interacting with the scripted object. 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]], [[OnTriggerEnter]], [[OnTriggerLeave]] 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.
Returns the reference currently interacting with the scripted object. 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]], [[OnTriggerEnter]], [[OnTriggerLeave]] 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.


==Notes==
=='''Syntax'''==
 
set refVar to GetActionRef
set refVar to GetAR
 
=='''Notes'''==
 
* This function is only useful inside an OnActivate, OnTriggerEnter, OnTriggerLeave, or OnTrigger block.
* This function is only useful inside an OnActivate, OnTriggerEnter, OnTriggerLeave, or OnTrigger block.
* Unlike [[IsActionRef]], which checks for a specific reference, this function returns a reference. However, it can be used to imitate the behavior of [[IsActionRef]]:
* Unlike [[IsActionRef]], which checks for a specific reference, this function returns a reference. However, it can be used to imitate the behavior of [[IsActionRef]]:
Line 11: Line 15:
if ( IsActionRef player ) ; these two expressions are equivalent</pre>
if ( IsActionRef player ) ; these two expressions are equivalent</pre>


==See Also==
=='''See Also'''==
[[IsActionRef]]<BR>
[[IsActionRef]]
[[OnTrigger]]
[[OnTrigger]]


[[Category:Functions]]
[[Category:Functions]]
[[Category:Functions (GECK 1.1)]]<BR>
[[Category:Reference Variable Functions]]
[[Category:Reference Variable Functions]]
[[Category:Reference Variable Functions (GECK 1.1)]]




Anonymous user