SetCreatureProperty

From Dragon Age Toolset Wiki
Revision as of 14:02, 11 January 2015 by Sunjammer (Talk | contribs) (Fixing parameters)

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

Set the value of the specified property on a creature.

void SetCreatureProperty(
object oCreature,
int nProperty,
float fNewValue,
int nValueType = PROPERTY_VALUE_BASE
);
Parameters:
oCreature
the creature whose property will be modified
nProperty
the property whose value will be modified
fNewValue
the value to be used
nValueType
the type of value of the property to modify (BASE, CURRENT, MODIFIER)
Returns:

Nothing.

Source:

script.ldf

Description

Sets the specified value of the selected property on a creature.

It does not work for TOTAL values: use the BASE value instead. See GetCreatureProperty for more details.

See also