Hello people of Sc2Mapster. I need help with a problem which I can't seem to figure out by myself. I want any Attack order to always be last in any order queue, on any unit, even if more orders are added. So if a unit has 2 move orders and one attack order queued, it should look like this:
1: Move to point A
2: Move to point B
3: Attack unit C
Now, if I want to add another order, the queue will look like this:
actually no, before existing orders will put the new order before ALL existing orders, and there are no options to change that. That would make it look like this:
1: Move to point D
2: Move to point A
3: Move to point B
4: Attack Unit C
This means that the last point (D) I want to go to is the point I will go to first. I do not want that.
There's no variable to store unit order so you might have to that yourself using an array. Make sure to save command type and target. The rest can be handled each time new order is added, reset the order queue and put it in the right order from the array
ok, thanks. what do you mean by resetting the order queue? is there a function for that or do you mean like ordering the unit to stop and then add all the orders? 'cause I don't want the unit to stop :S hope that's not the case :P
U dont have to make unit stop, just order it, replace existing order. That way it will change the order immideatly, just add other order to be after exisiting order
U dont have to make unit stop, just order it, replace existing order. That way it will change the order immideatly, just add other order to be after exisiting order
oh i see what you mean. However, this will make the unit execute the new order immediately, right? I really need it to just be queued, only AFTER any MOVE ORDERS and BEFORE any ATTACK ORDERS. "Insert it" between orders if you will.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hello people of Sc2Mapster. I need help with a problem which I can't seem to figure out by myself. I want any Attack order to always be last in any order queue, on any unit, even if more orders are added. So if a unit has 2 move orders and one attack order queued, it should look like this:
Now, if I want to add another order, the queue will look like this:
I WANT to look like this, though:
Is this possible? If so, then HOW?
3. 3: Move to point D
1. 1: Move to point A
2. 2: Move to point B
4. 4: Attack unit C
is easy, order before existing orders.
maybe there is a delete last order, add order after orders, add attack order
@b0ne123: Go
actually no, before existing orders will put the new order before ALL existing orders, and there are no options to change that. That would make it look like this:
1: Move to point D 2: Move to point A 3: Move to point B 4: Attack Unit C
This means that the last point (D) I want to go to is the point I will go to first. I do not want that.
There's no variable to store unit order so you might have to that yourself using an array. Make sure to save command type and target. The rest can be handled each time new order is added, reset the order queue and put it in the right order from the array
@progammer: Go
ok, thanks. what do you mean by resetting the order queue? is there a function for that or do you mean like ordering the unit to stop and then add all the orders? 'cause I don't want the unit to stop :S hope that's not the case :P
U dont have to make unit stop, just order it, replace existing order. That way it will change the order immideatly, just add other order to be after exisiting order
oh i see what you mean. However, this will make the unit execute the new order immediately, right? I really need it to just be queued, only AFTER any MOVE ORDERS and BEFORE any ATTACK ORDERS. "Insert it" between orders if you will.