Difference between revisions of "RemoveScript"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Geckbot
m (Robot: Automated text replacement (-'''.*'''\r\n +))
imported>Odessa
(expanded. sources: gribbleshnibit)
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 = ref
  |returnType = Script:form
  |referenceType = ref
  |referenceType = ref
  |arguments =  
  |arguments =  
   {{FunctionArgument
   {{FunctionArgument
   |Name = item
   |Name = ScriptableObject
   |Type = ref
   |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>
==See Also==
*[[IsScripted]]
*[[GetScript]]
*[[SetScript]]
[[Category:Functions_(FOSE)]]
[[Category:Functions_(FOSE)]]
[[Category:Script Functions]]

Revision as of 06:31, 6 August 2014

< [[::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

[help]
(Script:form) ref.RemoveScript ScriptableObject:form

Example

ref OldScript

set OldScript to SunnyREF.RemoveScript

; or (required for non-references):

set OldScript to RemoveScript SunnyREF

See Also