Difference between revisions of "IsScripted"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Geckbot
(Automated import of articles)
 
imported>Odessa
(expanded)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
'''IsScripted'''
{{Function
{{Function
  |origin = FOSE1
  |origin = FOSE1
  |summary = Returns 1 if the object or reference has a script attached to it.
  |summary = Returns true (1) if the calling reference or passed object has a script attached to it.
  |name = IsScripted
  |name = IsScripted
  |returnType = int
  |returnType = bool
  |referenceType = ref
  |referenceType = ref
  |arguments =  
  |arguments =  
   {{FunctionArgument
   {{FunctionArgument
   |Name = item
   |Name = ScriptableObject
   |Type = ref
   |Type = form
   |Optional = optional
   |Optional = optional
   }}
   }}
}}
}}
==Example==
<pre>
if SunnyREF.IsScripted
  ; do something
endif
; or (required for non-references):
if (IsScripted SunnyREF)
</pre>
==See Also==
*[[GetScript]]
*[[SetScript]]
[[Category:Script Functions]]
[[Category:Functions_(FOSE)]]
[[Category:Functions_(FOSE)]]

Latest revision as of 06:25, 6 August 2014

< [[::Category:Functions|Category:Functions]]

A function added by the Fallout Script Extender.

Description

Returns true (1) if the calling reference or passed object has a script attached to it.

Syntax

[help]
(bool) ref.IsScripted ScriptableObject:form

Example

if SunnyREF.IsScripted
   ; do something
endif

; or (required for non-references):

if (IsScripted SunnyREF)

See Also