IsScripted

From GECK
Jump to: navigation, search


A function added by the Fallout Script Extender.

Description

Returns true (1) if the [specified BaseForm has a script attached to it, false (0) otherwise. If ScriptableForm is omitted and a calling reference is provided, that reference's BaseForm is used.

Syntax

[help]
(isScripted:bool) reference.IsScripted ScriptableForm:baseForm 

Example

if SunnyREF.IsScripted
   ; do something
endif

; or (required for non-references):

if (IsScripted SunnyREF)

See Also