How do u do this

DarkFox

Member
Joined
Jul 24, 2005
Messages
5
Reaction score
0
I was making amap i have a question how do u make a unit change to another unit and still be in the same place then change back
 

Octopor

your whole family is made of meat
Joined
Nov 28, 2003
Messages
2,043
Reaction score
2
Trigger 1:
Condition:
Bring(<player>,<atleast/atmost/exactly>,<number>,<unit>,<location>)

Action:
SetSwitch 2

Trigger 2:

Condition:
Switch2 is set
Always

Action:
RemoveUnitAtLocation(<number of units>, <unit>, <player>, <location>)
CreateUnit(<number of units>, <unit>, <location>, <player>)
SetSwitch 1
ClearSwitch 2
PreserveTrigger

Trigger 3:

Conditions:
Switch1 is set
Bring(<player>,<atleast/atmost/exactly>,<number>,<unit>,<location>) //for the unit you would put the unit that you just created
Always

Action:
RemoveUnitAtLocation(<number of units>, <unit>, <player>, <location>) //unit you just created
CreateUnit(<number of units>, <unit>, <location>, <player>)//unit that was removed before
SetSwitch 2
ClearSwitch 1
PreserveTrigger


This should work, unless of course I've forgotten everything I know about starcraft...

Of course, I love to overcomplicate things, so you should probably be able to do this in about maybe 4 actions or something.

/fixed
 

DarkFox

Member
Joined
Jul 24, 2005
Messages
5
Reaction score
0
i got another question how do u get a unit appear next to unit

but that unit (the one is there not the on appear)is not on a location :nooob
 

-Azrael666-

BattleForums Senior Member
Joined
Jan 19, 2005
Messages
2,986
Reaction score
3
One of the actions available is "Move Location to Unit controlled by Player at Anywhere". If you have any trouble from there, or any more questions, just ask.
 

NewPosts

New threads

Top