Difference between revisions of "GetReference - ReferenceAlias"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Jlundin
 
imported>Thingy Person
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
[[Category:Scripting]]
[[Category:Scripting]]
[[Category:Papyrus]]
[[Category:Papyrus]]
[[Category:Non-delayed Native Function]]
'''Member of:''' [[ReferenceAlias Script]]
'''Member of:''' [[ReferenceAlias Script]]


Line 9: Line 10:
ObjectReference Function GetReference() native
ObjectReference Function GetReference() native
ObjectReference Function GetRef()
ObjectReference Function GetRef()
return GetReference()
endFunction
</source>
</source>



Latest revision as of 16:17, 29 June 2013

Member of: ReferenceAlias Script

Attempts to retrive 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()
	return GetReference()
endFunction

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]