ArrayCmp

From the Oblivion ConstructionSet Wiki
Revision as of 10:52, 30 March 2008 by imported>Speedo (Updated syntax)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

A command for Pluggy.

Syntax:

(Equality:bool) ArrayCmp FirstArrayID:long SecondArrayID:long CheckValidity:short

Compares two arrays; Returns 1 if they are equal, or 0 if they are different or invalid.

If CheckValidity is 1, ArrayCmp will return the following if one or both of the ArrayIDs is invalid:

Value  Meaning
 -1     FirstArray is invalid
 -2     SecondArray is invalid
 -3     Both arrays are invalid