Difference between revisions of "GetActorReference - ReferenceAlias"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Jlundin
 
imported>JustinOther
m (Added note about expense of this vs. 'GetReference() As Actor')
Line 23: Line 23:
</source>
</source>


== Notes ==
*Under the hood, this is 'GetReference() As Actor' which is measurably faster.
== See Also ==
== See Also ==
*[[ReferenceAlias Script]]
*[[ReferenceAlias Script]]
*[[Actor Script]]
*[[Actor Script]]
*[[GetReference - ReferenceAlias]]
*[[GetReference - ReferenceAlias]]

Revision as of 22:37, 5 October 2012

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

Notes

  • Under the hood, this is 'GetReference() As Actor' which is measurably faster.

See Also