Im working on/Reviving an awesome map
Moderator: Cheaters
-
- Junior Member
- Posts: 27
- Joined: March 13th, 2010, 4:00 am
Im working on/Reviving an awesome map
hey guys im working on this map and its a Spawning units map and giving units to people mass warfare kinda and i was wondering how to make everyone able to select all their units instead of 12 at a time can ya help me out with this?
-
- Spice Pirate
- Posts: 862
- Joined: January 29th, 2009, 5:35 pm
- Title: LHC
- Location: Canada
Re: Im working on/Reviving an awesome map
The closest you could get is a dummy unit, which would apply every order applied on it to every unit you own.
Spoiler:
-
- Junior Member
- Posts: 27
- Joined: March 13th, 2010, 4:00 am
Re: Im working on/Reviving an awesome map
How exactly wouldi acomplish that?
and would there be a way to switch between normal and the dummy? so you could still send different parts of units to seperate places
and would there be a way to switch between normal and the dummy? so you could still send different parts of units to seperate places
-
- Senior Member
- Posts: 127
- Joined: March 27th, 2010, 2:32 pm
Re: Im working on/Reviving an awesome map
Variables: [name:"tug" type:"unitgroup"]
Event - a unit issued order targeting a location
Condition - unit-type of (triggering unit) is equal to 'Global control module'
Actions
{
set tug to (Units owned by (Owner of (Triggering unit)))
Pick every unit and do (Actions)
{
Issue (Issued order) targeting a (Target of issued order)
}
execute code "call DestroyGroup(udg_tug)"
}
Event - a unit issued order targeting a location
Condition - unit-type of (triggering unit) is equal to 'Global control module'
Actions
{
set tug to (Units owned by (Owner of (Triggering unit)))
Pick every unit and do (Actions)
{
Issue (Issued order) targeting a (Target of issued order)
}
execute code "call DestroyGroup(udg_tug)"
}