Difference between revisions of "RemoveScript"
Jump to navigation
Jump to search
imported>Geckbot m (Robot: Automated text replacement (-'''.*'''\r\n +)) |
imported>Odessa (Does not work with MGEF) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
|origin = FOSE1 | |origin = FOSE1 | ||
|summary = Removes the script of the reference or passed object. | |summary = Removes the script of the calling reference or passed object, and returns it. | ||
|name = RemoveScript | |name = RemoveScript | ||
|returnType = | |returnType = Script:form | ||
|referenceType = ref | |referenceType = ref | ||
|arguments = | |arguments = | ||
{{FunctionArgument | {{FunctionArgument | ||
|Name = | |Name = ScriptableObject | ||
|Type = | |Type = form | ||
|Optional = optional | |Optional = optional | ||
}} | }} | ||
}} | }} | ||
==Example== | |||
<pre> | |||
ref OldScript | |||
set OldScript to SunnyREF.RemoveScript | |||
; or (required for non-references): | |||
set OldScript to RemoveScript SunnyREF | |||
</pre> | |||
==Notes== | |||
* As of NVSE 4.6.2, this function does not work when called on a Base Effect (MGEF). | |||
==See Also== | |||
*[[IsScripted]] | |||
*[[GetScript]] | |||
*[[SetScript]] | |||
[[Category:Functions_(FOSE)]] | [[Category:Functions_(FOSE)]] | ||
[[Category:Script Functions]] |
Latest revision as of 07:56, 27 February 2015
< [[::Category:Functions|Category:Functions]]
A function added by the Fallout Script Extender.
Description
Removes the script of the calling reference or passed object, and returns it.
Syntax
(Script:form) ref.RemoveScript ScriptableObject:form
Example
ref OldScript set OldScript to SunnyREF.RemoveScript ; or (required for non-references): set OldScript to RemoveScript SunnyREF
Notes
- As of NVSE 4.6.2, this function does not work when called on a Base Effect (MGEF).