Difference between revisions of "SetLinkedReference"

From GECK

 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{Function
 
{{Function
 
  |origin = JIP
 
  |origin = JIP
  |summary = Sets the calling reference's linked reference to <i>targetRef</i> or, if the latter is not specified, removes its current linked reference.
+
  |summary = Sets the calling reference's linked reference to <i>targetRef</i> or, if the latter is not specified, resets its linked reference to the original value.
 
  |name = SetLinkedReference
 
  |name = SetLinkedReference
 
  |referenceType = reference
 
  |referenceType = reference
Line 11: Line 11:
 
   }}
 
   }}
 
  |example = ObjectRef.SetLinkedReference linkedRef
 
  |example = ObjectRef.SetLinkedReference linkedRef
 
ObjectRef.SetLinkedReference
 
 
}}
 
}}
==Notes==
 
*Unfortunately, the changes are not saved with the game and this function must be called again when the game is restarted.
 
 
==See Also==
 
==See Also==
 
*[[GetLinkedRef]]
 
*[[GetLinkedRef]]
 
*[[GetLinkedChildren]]
 
*[[GetLinkedChildren]]
[[Category:Functions_(JIP)]]
+
[[Category:Functions (JIP)]]
 +
[[Category:Misc Reference Functions (JIP)]]

Latest revision as of 02:39, 29 March 2017

A function added by the JIP NVSE Plugin.

Description

Sets the calling reference's linked reference to targetRef or, if the latter is not specified, resets its linked reference to the original value.

Syntax

reference.SetLinkedReference targetRef:ref

Example

ObjectRef.SetLinkedReference linkedRef

See Also

Personal tools