Difference between revisions of "SetLinkedReference"

From GECK

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]]

Revision as of 00:56, 25 April 2015

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