Method Unit:AddFlatStatModifier [-] [+]
Modifies a flat amount of a specific stat of the Unit
| UnitModifierFlatType | ID |
|---|---|
| BASE_VALUE | 0 |
| TOTAL_VALUE | 1 |
Synopsis
Unit:AddFlatStatModifier( statType, modType, value )
Unit:AddFlatStatModifier( statType, modType, value, apply )
Arguments
number statTypeThe stat to modify.
Valid numbers: integers from 0 to 4,294,967,295.
UnitModifierFlatType modTypeThe type of modifier to apply.
number valueThe value to apply to the stat.
Valid numbers: all decimal numbers.
boolean apply (true)True applies a positive modifier, false applies a negative.
Returns
Nothing.