GetActorReference - ReferenceAlias

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

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()
Actor Function GetActorRef()

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()

Note[edit | edit source]

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

See Also[edit | edit source]