GetLinkedRef - ObjectReference: Difference between revisions
Jump to navigation
Jump to search
imported>Jlundin No edit summary |
m (Convert source tags to syntaxhighlight) |
||
| Line 6: | Line 6: | ||
== Syntax == | == Syntax == | ||
< | <syntaxhighlight lang="papyrus"> | ||
ObjectReference Function GetLinkedRef(Keyword apKeyword = None) native | ObjectReference Function GetLinkedRef(Keyword apKeyword = None) native | ||
</ | </syntaxhighlight> | ||
== Parameters == | == Parameters == | ||
| Line 18: | Line 18: | ||
== Examples == | == Examples == | ||
< | <syntaxhighlight lang="papyrus"> | ||
; Get the linked ref for the parent marker | ; Get the linked ref for the parent marker | ||
ObjectReference linkedRef = parentMarker.GetLinkedRef() | ObjectReference linkedRef = parentMarker.GetLinkedRef() | ||
</ | </syntaxhighlight> | ||
<br> | <br> | ||
< | <syntaxhighlight lang="papyrus"> | ||
; Get the linked ref for the special keyword | ; Get the linked ref for the special keyword | ||
ObjectReference specialRef = parentMarker.GetLinkedRef(SpecialKeyword) | ObjectReference specialRef = parentMarker.GetLinkedRef(SpecialKeyword) | ||
</ | </syntaxhighlight> | ||
== See Also == | == See Also == | ||
*[[ObjectReference Script]] | *[[ObjectReference Script]] | ||
*[[GetNthLinkedRef - ObjectReference]] | *[[GetNthLinkedRef - ObjectReference]] | ||
Latest revision as of 21:00, 5 September 2026
Member of: ObjectReference Script
Gets the reference linked to this one. If there is no linked reference, it returns None.
Syntax[edit | edit source]
ObjectReference Function GetLinkedRef(Keyword apKeyword = None) nativeParameters[edit | edit source]
- apKeyword: Keyword to specify which linked ref you want.
- Default: None
Return Value[edit | edit source]
The ObjectReference linked to this one for the given Keyword, or None if there isn't any.
Examples[edit | edit source]
; Get the linked ref for the parent marker
ObjectReference linkedRef = parentMarker.GetLinkedRef()
; Get the linked ref for the special keyword
ObjectReference specialRef = parentMarker.GetLinkedRef(SpecialKeyword)