SetTokenRef
Jump to navigation
Jump to search
< [[::Category:Functions|Category:Functions]]
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. Added by NVSE 3.1.
Syntax
(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.