Code Examples
v4.0
Last updated
Was this helpful?
v4.0
Last updated
Was this helpful?
Without modification, the periodic effects are calcuated when the object is created. If you'd like to specify the impact, you can use the SetPeriodicEffectValue()
method.
The "Instant Health" condition is "Instant", and affects the "Health" of the target. However, the min/max value for points are both 0
, meaning without modification, this will not have any impact at all.
The method will choose a random value between min and max, and assign that value to the effect, and also return the value chosen.
The code below in DamageActor(
) will create a new from the Instant Health , and then set the value using the gameCondition.SetPeriodicEffectValue()
method, passing in the Health object, and the min/max values.