Found a rather annoying discrepancy in when spawn effects are applied.
CEffectCreateUnit appears to do the following, Create Unit, Unit Created Event, Apply Spawn Effect,
while CBehaviorSpawn does it in another order, Create Unit, Apply Spawn Effect, Unit Created Event.
The latter being the expected result, event emitted after the unit has been fully initialized.
Am unsure of how the different abilities handle this, Train, Arm Magazine etc but i bet there are some bugs there as-well.
This might seem minor, but having predictable event parameters is very important.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Found a rather annoying discrepancy in when spawn effects are applied.
CEffectCreateUnit appears to do the following, Create Unit, Unit Created Event, Apply Spawn Effect, while CBehaviorSpawn does it in another order, Create Unit, Apply Spawn Effect, Unit Created Event. The latter being the expected result, event emitted after the unit has been fully initialized.
Am unsure of how the different abilities handle this, Train, Arm Magazine etc but i bet there are some bugs there as-well. This might seem minor, but having predictable event parameters is very important.