This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
How do I create a Unit with UnitCreate and put that guy I just made in to a Unit Variable?
I can not figure this out, And I could not find out how to do that with the forum search.
Thanks for the help :D
I donĀ“t know anything about scripting, but when I view the script of this action:
Variable - Set Unit = (Last created unit)
it says:
gv_unit = UnitLastCreated()
Hope this helps.
@Exaken: Go
JademusSreg from the IRC channel helped me out.
Its:
unit MyUnit = UnitGroupUnit(UnitCreate(/* Create Unit Stuff In Here */),1);
This will create a unit and set it to a variable so you can call upon it again. like :
UnitSetScale(MyUnit,200,200,200);
How do I create a Unit with UnitCreate and put that guy I just made in to a Unit Variable?
I can not figure this out, And I could not find out how to do that with the forum search.
Thanks for the help :D
I donĀ“t know anything about scripting, but when I view the script of this action:
it says:
Hope this helps.
@Exaken: Go
JademusSreg from the IRC channel helped me out.
Its:
unit MyUnit = UnitGroupUnit(UnitCreate(/* Create Unit Stuff In Here */),1);
This will create a unit and set it to a variable so you can call upon it again. like :
UnitSetScale(MyUnit,200,200,200);