ScriptEvent:getDeclIndex

From Mod Wiki

Parameters

integer type -- Index of the decl type.
string name -- Name of the decl to look up.

Result

integer

Supported By

sdSysCallThread

Comments

  • If either the type or name are invalid/cannot be found, the result will be -1.

Functionality

Returns the index of decl of the specified type and name.