Menu

Commit [r2746]  Maximize  Restore  History

New entity header: Stats {index} {value}. Allows establishment of model/entity values for script use without need of spawn and cleanup script overhead. Similar to health, values exist at the entity and model level.

{index} - Currently 1-20.
{value} - Any integer/decimal value.

getentityproperty({ent}, "stats", {type}, {index}): Returns the entity's stats value.

{type} - 0 = Modeldata. 1 = Entity.
{index} - Value index to retrive.

changeentityproperty({ent}, "stats", {type}, {index}, {value}): Modify the entity's stats value.

{type} - 0 = Modeldata. 1 = Entity.
{index} - Value index to modify.
{value} - New value. Accepts any whole or decimal number.

Will look at setting up for dynamic index limit in the future.

damon_caskey 2010-04-29

MongoDB Logo MongoDB