Dammit forgot again
![Mad](https://apolyton.net/core/images/smilies/mad.gif)
![I said do it!!](https://apolyton.net/core/images/smilies//doitnow3.gif)
![Mad](https://apolyton.net/core/images/smilies/mad.gif)
Example: location_t location_of_death; // ... // set location_of_death to some square first // ... // This handler will kill every unit that enters a preset location of death HandleEvent(MoveUnits) 'MyMoveHandler' post { if(army[0].location == location_of_death) { int_t u; for(u = 0; u < army[0].size; u++) { unit_t unit; GetUnitFromArmy(army[0], u, unit); Event:KillUnit(unit, 0, -1); } } }
Example: location_t location_of_death; // ... // set location_of_death to some square first // ... // This handler will kill every unit that enters a preset location of death HandleEvent(MoveUnits) 'MyMoveHandler' post { if(army[0].location == location_of_death) { int_t u; for(u = 0; u < army[0].size; u++) { unit_t unit; GetUnitFromArmy(army[0], u, unit); Event:KillUnit(unit, 0, -1); } } }
MakeLocation(location_of_death, x, y)
Comment