Chat command that creates any unit

Status
Not open for further replies.
Level 5
Joined
Oct 7, 2005
Messages
102
Can anyone here think of a single trigger that will let a player create any unit they want as long as they give the correct name of the unit in a chat message?
 
Okay, thanks for your help. But I still don't understand how I do that. Do I paste what you said before in the custom script value or do I create some kind of variable?
 
Okay, I pasted what you said into the "Value" box. But when I tried to save the map, an error popped up saying "Line 490: Expected a code statment". :S
 
But something else I need while your here, can you change it so it creates the unit at a unit variable? Or even better at where the players mouse cursor is?
 
Thanks, can you also change that script so that you can create any number of units.

So say a player said "sheep 3" it created 3 sheep.

And spenc, what you said didn't work with the unit's position :/ Can you give it in an example trigger please?
 
Status
Not open for further replies.
Back
Top