GetReference - ReferenceAlias

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: ReferenceAlias Script

Attempts to retrieve the object reference this alias is pointing at. If it has not been resolved to a reference, it will return None.

Syntax[edit | edit source]

ObjectReference Function GetReference() native
ObjectReference Function GetRef()

Parameters[edit | edit source]

None

Return Value[edit | edit source]

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

Examples[edit | edit source]

; Get the reference the alias points at
ObjectReference bossRef = BossAlias.GetReference()

See Also[edit | edit source]