GetActorReference - ReferenceAlias

From the CreationKit Wiki
Revision as of 13:18, 26 October 2011 by imported>Jlundin
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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

Actor Function GetActorReference()
Actor Function GetActorRef()

Parameters

None

Return Value

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

Examples

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

See Also