- Joined
- Mar 4, 2009
- Messages
- 1,156
i need help with some custom scripts,i need to order some unit to do something trough OrderID ( i think only OrderId supports functions like "(GetIssuedOrderId()))" ,so that some other unit can do the same order as triggering unit (btw i saw that this cant be done with normal GUI actions for orders and i think it sucks)
i found this ...
-no target
call IssueImmediateOrderById( SomeUnit, (GetIssuedOrderId()))
-unit target
call IssueTargetOrderById( SomeUnit, (GetIssuedOrderId()), TargetOrderUnit )
-for that i just replaced "BJ" with "ById" and that was it..but it cant work for locations etc..
but i cant find how to do it for
-point order
-target destructible order
-target item order
xD
i want so if some unit is ordered to do something,than SomeUnit does the same order
EDIT:
Pharaoh + rep again
SOLVED:
-no target
call IssueImmediateOrderById( YourUnit, (GetIssuedOrderId()))
-target point order
Set POINT = (Target point of issued order)
Custom script: call IssuePointOrderByIdLoc ( YourUnit, (GetIssuedOrderId()), udg_POINT)
Custom script: call RemoveLocation(udg_POINT)
-target object order
>target unit order
Custom script: call IssueTargetOrderById( YourUnit, (GetIssuedOrderId()), ( GetOrderTargetUnit()))
>target item order
Custom script: call IssueTargetOrderById( YourUnit, (GetIssuedOrderId()), GetOrderTargetItem() )
>target destructible
Custom script: call IssueTargetOrderById( YourUnit, (GetIssuedOrderId()), GetOrderTargetDestructable() )
i found this ...
-no target
call IssueImmediateOrderById( SomeUnit, (GetIssuedOrderId()))
-unit target
call IssueTargetOrderById( SomeUnit, (GetIssuedOrderId()), TargetOrderUnit )
-for that i just replaced "BJ" with "ById" and that was it..but it cant work for locations etc..
but i cant find how to do it for
-point order
-target destructible order
-target item order
xD
i want so if some unit is ordered to do something,than SomeUnit does the same order
EDIT:
Pharaoh + rep again

SOLVED:
-no target
call IssueImmediateOrderById( YourUnit, (GetIssuedOrderId()))
-target point order
Set POINT = (Target point of issued order)
Custom script: call IssuePointOrderByIdLoc ( YourUnit, (GetIssuedOrderId()), udg_POINT)
Custom script: call RemoveLocation(udg_POINT)
-target object order
>target unit order
Custom script: call IssueTargetOrderById( YourUnit, (GetIssuedOrderId()), ( GetOrderTargetUnit()))
>target item order
Custom script: call IssueTargetOrderById( YourUnit, (GetIssuedOrderId()), GetOrderTargetItem() )
>target destructible
Custom script: call IssueTargetOrderById( YourUnit, (GetIssuedOrderId()), GetOrderTargetDestructable() )
Last edited: