IsLinkedTo

From the CreationKit Wiki
Jump to navigation Jump to search

This condition function runs on a reference (the "subject"), and accepts two arguments: a reference ("argument-ref") and a keyword. The function retrieves the subject's linked ref for the specified keyword; if that linked ref is the argument-ref, then the condition function returns 1.0. Otherwise, the condition function returns 0.0.

The equivalent Papyrus code using ObjectReference.GetLinkedRef(...) would be:

   ; given: myRef.IsLinkedTo otherRef myKeyword
   ;
   Bool bIsLinked = myRef.GetLinkedRef(myKeyword) == otherRef