Order Variable to issue an order

Status
Not open for further replies.
Level 13
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.
 
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.
 
I dont know if you can save the handle of the previous rally point somewhere .. was that the question?
 
???

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.
Back
Top