RemoveScript
From GECK
A function added by the Fallout Script Extender.
Contents
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
(Script:baseForm) reference.RemoveScript ScriptableObject:baseForm
Example
ref OldScript set OldScript to SunnyREF.RemoveScript ; or (required for non-references): set OldScript to RemoveScript GSSunnySmiles