ScriptEvent:getVectorKeyWithDefault

From Mod Wiki
Revision as of 17:00, 5 November 2007 by Wizz (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Parameters

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

Result

vector

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 0 0' will be returned.

Functionality

Looks up meta data from the object and converts it to a vector.