Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
Yes. Use the action Set Variable. Set the first field to your variable, and for the second field, click the Select Unit button. This will take you to the editor screen. Click the unit you want to use, and you're done.
It is impossiable for a Variable to become a unit. It is like saying I would like this pile of wood to become steel.
However, A Variable can refer to a unit that was made eariler, eithor by the WC3 engine or spawned by triggers. To do that you will have to use a unit variable which is a type of handle variable and then set it to the unit you want to refer to.
To refer to units you placed in the World Editor you have to use the preplaced unit option when using a action that refers to a certian unit in GUI. From that you can then use the genericly created variable in your JASS scripts if you need to.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.