Difference between revisions of "ScriptEvent:getIntKeyWithDefault"

From Mod Wiki
 
(No difference)

Latest revision as of 16:41, 5 November 2007

Parameters

string key -- The name of the key to look up.
integer default -- The default value to return.

Result

integer

Supported By

sdTeamInfo
sdPlayerTask
idEntity

Comments

  • If the key is not found, the default value will be returned.
  • If the data cannot be converted, 0 will be returned.

Functionality

Looks up meta data from the object and converts it to an integer.