• 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!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Order Variable to issue an order

Status
Not open for further replies.
Level 12
Joined
May 9, 2009
Messages
735
Hello I want to give a unit an order from a variable but can't seem to find a GUI way to do it. I found a thread about this on the helper but it has 0 replies since 2009. I want to use this for replacing a trained unit with another type of unit and keeping the relevance of the building's rally point.

Any help will be appreciated.
 
Level 12
Joined
May 9, 2009
Messages
735
I think you have misunderstood. A unit is produced but I want there to be a 50% chance for another unit to spawn instead of the trained unit. Replacing the unit is no problem but keeping its original order from the building is. The rally point of the building initially has no affect on the new unit.
 
Level 6
Joined
Oct 31, 2014
Messages
170
I dont know if you can save the handle of the previous rally point somewhere .. was that the question?
 
Level 24
Joined
Aug 1, 2013
Messages
4,658
???

Who the hell removed that post that was between my 2 posts???

Well next to the three you mentioned:
"Issue order targeting a unit"
"Issue order targeting a point"
"Issue order with not target"
There are also:
"Issue order targeting a destructable"
"Issue order targeting an item"
"Issue train upgrade order"
"Issue research order"
"Issue build order"
"Issue drop item order"
"Issue move item in inventory order"
"Issue give item order"

But most of them are the same action actually.

the function that you want is "call IssuePointOrder(unit whichUnit, string order, real x, real y)"
You can save the order as a string in a variable and load that variable in a custom script from that function.
 
Status
Not open for further replies.
Top