SetTokenRef

From GECK
Jump to: navigation, search


A function added by the New Vegas Script Extender.

Description

Sets the form value of the specified token in the inventory of the calling reference.

Syntax

[help]
(none) Actor.SetTokenRef Token:baseform NewValue:anyform 

Example

ref rPartner
let rPartner := EasyPeteRef

SunnyREF.SetTokenRef MarriageToken, rPartner

Note

  • As of NVSE 4.5.6, the compiler disallows passing references directly to this function. However, it works correctly for base forms, or if you use an intermediary ref variable, or use the Script Compiler Override.

See Also