GetActorReference - ReferenceAlias
Revision as of 16:17, 29 June 2013 by imported>Thingy Person (→Syntax)
Member of: ReferenceAlias Script
Attempts to retrieve the actor this alias is pointing at. If it has not been resolved to a reference, or the reference is not an Actor, it will return None.
Syntax[edit | edit source]
Actor Function GetActorReference()
return GetReference() as Actor
endFunction
Actor Function GetActorRef()
return GetActorReference()
endFunction
Parameters[edit | edit source]
None
Return Value[edit | edit source]
The Actor this alias is pointing at, or None if the alias has not been resolved or is not an Actor.
Examples[edit | edit source]
; Obtain the actor this alias points at
Actor theActor = MyAlias.GetActorReference()
Notes[edit | edit source]
- Under the hood, this is 'GetReference() As Actor' which is measurably faster.