Unburrowing them works, but after they unburrow, the patrol order is not being executed. here's the code:
lings 001
Events
Unit - Any Unit Enters Zerg -- Lings 001
Local Variables
ling = No Unit <Unit>
Conditions
(Owner of (Triggering unit)) == 1
Actions
Trigger - Turn (Current trigger) Off
Unit - Order all units in (Any units in Zerg -- Lings 001 owned by player 2 matching Excluded: Missile, Dead, Hidden, with at most Any Amount) to (Zergling - Unburrow) (Replace Existing Orders)
General - Wait 1.0 Game Time seconds
Unit Group - For each unit ling in (Any units in Zerg -- Lings 001 owned by player 2 matching Excluded: Missile, Dead, with at most Any Amount) do (Actions)
Actions
Unit - Order ling to ( Patrol targeting (Center of Zerg -- Lings 001)) (Replace Existing Orders)
I urge everyone that's trying to issue multiple orders to units in the trigger editor to remember to time everything carefully. Keep in mind that it is necessary to wait for as long as the initial order takes to execute, or the trigger won't fire because the unit is currently channeling an ability that prevents any other commands from being issued.
This is actually a trigger editor question, but you can solve the problem by changing the second order from Replace Existing Order to After Existing Order.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Unburrowing them works, but after they unburrow, the patrol order is not being executed. here's the code:
lings 001
Events
Unit - Any Unit Enters Zerg -- Lings 001
Local Variables
ling = No Unit <Unit>
Conditions
(Owner of (Triggering unit)) == 1
Actions
Trigger - Turn (Current trigger) Off
Unit - Order all units in (Any units in Zerg -- Lings 001 owned by player 2 matching Excluded: Missile, Dead, Hidden, with at most Any Amount) to (Zergling - Unburrow) (Replace Existing Orders)
General - Wait 1.0 Game Time seconds
Unit Group - For each unit ling in (Any units in Zerg -- Lings 001 owned by player 2 matching Excluded: Missile, Dead, with at most Any Amount) do (Actions)
Actions
Unit - Order ling to ( Patrol targeting (Center of Zerg -- Lings 001)) (Replace Existing Orders)
Whatever you do, wholeheartedly, moment by heartfelt moment, becomes a tool for the expression of your very soul.
fixed by adding a 2 second wait instead of 1 second.
Whatever you do, wholeheartedly, moment by heartfelt moment, becomes a tool for the expression of your very soul.
@GnaReffotsirk: Go
Glad it worked.
I urge everyone that's trying to issue multiple orders to units in the trigger editor to remember to time everything carefully. Keep in mind that it is necessary to wait for as long as the initial order takes to execute, or the trigger won't fire because the unit is currently channeling an ability that prevents any other commands from being issued.
KSNumedia's Assets: Custom Models for campaigns and mods!
This is actually a trigger editor question, but you can solve the problem by changing the second order from Replace Existing Order to After Existing Order.