SetTokenRef

From the Fallout3 GECK Wiki
Revision as of 12:00, 24 August 2014 by imported>Odessa (created. source my testing)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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

[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