ArmyOfFrogs
New Member
- Reaction score
- 20
Well, after many many hours of pondering and a few hours of tinkering, I have come to the conclusion that respawn systems suck. However, what I would appreciate from TH is any advice on the most painless way to go about setting one up, or any comments on the method that I am considering using.
Edited out as it doesn't work, just going to paste what i put down my next post as it's the closest to a working idea as i can form.
Edited again sorry lol, just found a possible solution, and would like to just run it through with the pros here.
Again, thanks for any help it is very much appreciated.
So the problem lies in being able to set the UnitArray [] equal to the seperate unit types and also know which ones they are, so that I can set up the separate respawn timers, and also be able to control which units will respawn and which ones won't.
Edited out as it doesn't work, just going to paste what i put down my next post as it's the closest to a working idea as i can form.
Edited again sorry lol, just found a possible solution, and would like to just run it through with the pros here.
Again, thanks for any help it is very much appreciated.
Code:
Events - Map Initialization
A - Unit Group - Pick every unit in (Units in (Playable map area) owned by Player 11 (Dark Green)) and do (Actions)
Loop - Actions
Unit Group - Add (Picked unit) to UnitGroup1
Set NumberofUnits = (Number of units in UnitGroup1)
Unit Group - Pick every unit in UnitGroup1 and do (Actions)
For each (Integer A) from 1 to NumberofUnits, do (Actions)
Set UnitArray [Integer A] = (don't know how to get the individual unit types from the unitgroup?)
So the problem lies in being able to set the UnitArray [] equal to the seperate unit types and also know which ones they are, so that I can set up the separate respawn timers, and also be able to control which units will respawn and which ones won't.