HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Issue Order Variable?

08-29-2004, 10:48 AM#1
Xaran Alamas
Ok, I have an order stored in an Order variable and I want to give a unit the order that is stored in the variable but I'm not quite sure what the coding is for this in JASS (as in GUI you only get the drop-down list)
Thanks
08-29-2004, 11:15 AM#2
AFB-DieHard
I think call IssueImmediateOrderBJ( UNIT, VARIABLE) should work fine, but i am quite new to JASS
08-29-2004, 11:27 AM#3
Pheonix-IV
try IssueTargetOrderBJ( UNIT(), "ORDER", TARGET
08-29-2004, 11:33 AM#4
Xaran Alamas
Phoenix, I tried IssueTargetOrderBJ( UNIT(), "udg_Order", TARGET but it didn't work, or should I ditch the udg bit?
08-29-2004, 11:36 AM#5
Pheonix-IV
hm, what is the order your trying to do? I'm pritty sure that Issue order against a point, unit ect have different strings, so it needs to have the correct string for the correct order.
08-29-2004, 11:44 AM#6
Xaran Alamas
It's an object order.
08-29-2004, 01:07 PM#7
AIAndy
Remove the "" and what is the unit variable in which the unit is that you want to do the order ? I assume it is udg_my_unit now. And the target unit be udg_my_target.
Then it would be:
call IssueTargetOrder(udg_my_unit, udg_order, udg_my_target)
I am currently not 100% sure what WE uses to store the order as there is the possibility of a string and of an integer. Should it be the order id (the integer), then the code is:
call IssueTargetOrderById(udg_my_unit, udg_order, udg_my_target)
08-29-2004, 01:14 PM#8
Xaran Alamas
Thanks Andy, I'll try those out
Edit: WOO! Thanks Andy it worked and it apparently takes a string variable not the integer.