HasScriptBlock

From GECK
Jump to: navigation, search


A function added by the JIP NVSE Plugin.

Description

Returns true if the script on the specified calling reference contains the matching Event Block. The optional baseForm may be a script or scripted object.

Syntax

[help]
(success:0/1) reference.HasScriptBlock eventID:int baseObject:ref

Example

actorRef.HasScriptBlock 10  ; OnDeath
doorRef.HasScriptBlock 31  ; OnOpen
HasScriptBlock 13 SomeScriptUDF  ; NVSE UDF
HasScriptBlock 21 SomeActivator  ; OnLoad 

Notes

This function is the only way to detect if a script is a User Defined Function by checking for type 13

See Also