Difference between revisions of "ScriptEvent:getTableValue"

From Mod Wiki
 
(No difference)

Latest revision as of 16:56, 5 November 2007

Parameters

integer index -- Index of the table.
integer value -- Which value to look up.

Result

float

Supported By

sdSysCallThread

Comments

  • This is the direct value from the table and does not do a lookup for interpolation, etc. To do that, use getTableValueExact.
  • If the index is -1, the result will be 0.
  • If the index is otherwise out of range, the game will likely crash or return garbage data.

Functionality

Returns an entry from a table.