AlExAlExAlEx
Member
- Reaction score
- 7
Can i put in a place let's say 10 footmans..and the first player that comes with a unit(hero or whatever unit) get's control of them ?(till they die)
Pick Footmen
Events
Time - Elapsed game time is 0.10 seconds
Conditions
Actions
Unit Group - Pick every unit in (Units in Footman_Area_Region matching ((Unit-type of (Picked unit)) Equal to Footman)) and do (Actions)
Loop - Actions
Unit Group - Add (Picked unit) to Footman_Control_Group
Gain Footmen Control
Events
Unit - A unit enters Hero Select <gen>
Conditions
Actions
Unit - Create 1 (Unit-type of Hero) for (Owner of (Entering unit)) at (Center of Hero_Spawn_Region) facing Default building facing degrees
Unit Group - Pick every unit in Footman_Control_Group and do (Actions)
Loop - Actions
Unit - Change ownership of (Picked unit) to (Owner of (Entering unit)) and Change color
Trigger - Turn on Hero Select <gen>
Trigger - Turn off Gain Footmen Control <gen>
Hero Select
Events
Unit - A unit enters Hero Select <gen>
Conditions
Actions
Unit - Create 1 (Unit-type of Hero) for (Owner of (Entering unit)) at (Center of Hero_Spawn_Region) facing Default building facing degrees
that's the idea..7 and 8 are already used by the computer..i can't "sacrifice" another slot..already "sacrificed" 2..so any other ideas?You could give "unit - make rescuable", along with a range, a try.
Alternatively, give them to an otherwise unused player that is an enemy to your players,
wait for a unit to be attacked by that player, then change the attacking unit's owner to the attacked unit's owner.
Make Footman Rescuable
Events
Time - Elapsed game time is 0.10 seconds
Conditions
Actions
Unit - Make Footman 0000 <gen> Rescuable
Trigger, something like this:
Code:Make Footman Rescuable Events Time - Elapsed game time is 0.10 seconds Conditions Actions Unit - Make Footman 0000 <gen> Rescuable