RunScript

From the Fallout3 GECK Wiki
Revision as of 17:51, 9 March 2015 by imported>Odessa (current status. Source my testing, and jaam.)
(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

Runs a script, which may be passed literally or attached to a form. This allows scripts to be run without a reference. Added by NVSE V4.1*.

Syntax

[help]
(none) RunScript Script:Script-or-ScriptedForm

Example

RunScript MyScript ; to run script MyScript

; or
RunScript MyToken ; to run the script attached to the item, MyToken

Unreliable?

  • As of NVSE 4.6.3, this function seems to run the first block of the script once, and only if it is appropriate (eg: first block is GameMode).

See Also