GetActorReference - ReferenceAlias

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.

SyntaxEdit

Actor Function GetActorReference()
Actor Function GetActorRef()

ParametersEdit

None

Return ValueEdit

The Actor this alias is pointing at, or None if the alias has not been resolved or is not an Actor.

ExamplesEdit

; Obtain the actor this alias points at
Actor theActor = MyAlias.GetActorReference()

NoteEdit

  • Just a convenience function for the much faster GetReference() as Actor.

See AlsoEdit