- Joined
- Jul 17, 2013
- Messages
- 544
Sorry for making new thread but i want more people to see it, i asked u guys before how to make unit dies when it has 0 mana.
Mana
Mana
-
Events
Time - Every 0.03 seconds of game time
Conditions
Actions
Custom script: set bj_wantDestroyGroup = true
Unit Group - Pick every unit in (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to Air Plane)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is alive) Equal to True
(Mana of (Picked unit)) Less than 0.01
Then - Actions
Unit - Kill (Picked unit)
Else - Actions
- i used this tiger given by you to me the problem is that i have 10 different kinds of units and when i put 10 units to that tigger game has very big lags due to it. is there any other way to put 10 units to make it less laggy? or maybe i can create spell which makes units dying when they have 0 mana? but i have no idea if its possible or how to do it



