Difference between revisions of "IsScripted"
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: | ||
{{Function | {{Function | ||
|origin = FOSE1 | |origin = FOSE1 | ||
|summary = Returns 1 if the object | |summary = Returns true (1) if the calling reference or passed object has a script attached to it. | ||
|name = IsScripted | |name = IsScripted | ||
|returnType = | |returnType = bool | ||
|referenceType = ref | |referenceType = ref | ||
|arguments = | |arguments = | ||
{{FunctionArgument | {{FunctionArgument | ||
|Name = | |Name = ScriptableObject | ||
|Type = | |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
(bool) ref.IsScripted ScriptableObject:form
Example
if SunnyREF.IsScripted ; do something endif ; or (required for non-references): if (IsScripted SunnyREF)