[General] Does unit event only available for pre-placed unit?

Status
Not open for further replies.
Changing the variable afterwards does not help, as this does not modify what the event has been registered on. And you often are good to go with the playerunitevent-variant:

call TriggerRegisterPlayerUnitEvent(gg_trg_swzydie, Player(0), EVENT_PLAYER_UNIT_DEATH, null)

This makes the trigger fire for any unit of Player(0)'s death.
 
Changing the variable afterwards does not help, as this does not modify what the event has been registered on. And you often are good to go with the playerunitevent-variant:

call TriggerRegisterPlayerUnitEvent(gg_trg_swzydie, Player(0), EVENT_PLAYER_UNIT_DEATH, null)

This makes the trigger fire for any unit of Player(0)'s death.

Do you mean the death of all the units controlled by Player(0)? What if I just detect a specific unit's death? Adding a condition?
 
Status
Not open for further replies.
Back
Top