GetM2DARows

From Dragon Age Toolset Wiki
Revision as of 13:59, 3 August 2010 by Proleric1 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Returns the number of rows in the specified 2da.

int GetM2DARows(
int n2DA,
string s2DA = ""
);
Parameters:
n2DA
The 2DA to access
s2DA
(optional) if n2da is -1 and this is a valid resource, it will retrieve the 2da based on the name instead of the index. Note that this should be avoided when possible.
Returns:

Returns the number of rows in the 2DA, returns 0 on error.

Source:

script.ldf

Description

Returns the number of rows in the specified 2da.