Page 1 of 1

Killing unit's in area after level is complete

Posted: Mon Aug 15, 2011 8:50 pm
by imsohordee
So in this new maze im making i want all the units to die in level one after they've reached level 2. Would i have to make 1 trigger to remove all of browns men in the level 1 area or is there a different way?

Re: Killing unit's in area after level is complete

Posted: Mon Aug 15, 2011 8:52 pm
by 3ICE
That is a good solution. Remove all brown units from Region_1 upon a hero entering Checkpoint_1. You don't need a separate trigger, put it in your checkpoint trigger.

Re: Killing unit's in area after level is complete

Posted: Mon Aug 15, 2011 8:58 pm
by imsohordee
Alright thank you, so all of the triggers for brown's men will turn off automatically?

Re: Killing unit's in area after level is complete

Posted: Mon Aug 15, 2011 9:03 pm
by 3ICE
Depends of what kind of triggers they are.
If you remove a patrolling unit, it will be removed along with its patrol information.
If you remove a brown unit, its kill-touching-hero trigger will not work anymore, but the event will still be there just never fire since the unit it references is nowhere (still a memory leak, and i dont know if it is fixable)
If you remove a brown unit that spins in a circle (check out my wisp spinning system), the game will keep trying to spin it, even though it was removed. You have to disable those triggers separately.

--3ICE

Re: Killing unit's in area after level is complete

Posted: Mon Aug 15, 2011 9:08 pm
by imsohordee
Alright thank you, im mainly removing patrols for now, so i should be good there and ill keep the wisp trigger in mind because that is a fun thing to have in any maze.