RemoveScript

From GECK
Jump to: navigation, search


A function added by the Fallout Script Extender.

Description

Removes the Script from the specified BaseForm, and returns it. If ScriptableForm is omitted and a calling reference is provided, that reference's BaseForm is modified, and the reference's script ExtraData will be cleared, meaning the old script will stop running immediately for the reference.

Syntax

[help]
(Script:baseForm) reference.RemoveScript ScriptableObject:baseForm 

Example

ref OldScript

set OldScript to SunnyREF.RemoveScript

; or (required for non-references):

set OldScript to RemoveScript GSSunnySmiles

See Also