GetScript

From GECK
Jump to: navigation, search


A function added by the Fallout Script Extender.

Description

Returns the script of a scriptable BaseForm. If ScriptableObject is omitted and a calling reference is provided, that reference's BaseForm is used.

Syntax

[help]
(script:BaseForm) reference.GetScript ScriptableObject:baseform 

Example

ref MyScript

set MyScript to SunnyREF.GetScript

; alternatively or necessarily for non-references:

set MyScript to GetScript SunnyREF

See Also