Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
If the orc burrow doesnt work as you want try to make it in triggers.
Why do you need to make it in Triggers if it's possible in the Object Editor? Don't need to over-complicate things.
I said, if i doesnt work.
Oh, he means an AI. Like, to have Neutral Passive towers load other nearby units into them.
Meh, no idea, I suck at triggers.
Load

Events


Unit - A unit Is issued an order targeting an object

Conditions


And - All (Conditions) are true



Conditions




(Unit-type of (Target unit of issued order)) Equal to Orc Burrow




(Owner of (Target unit of issued order)) Equal to Neutral Passive

Actions


Wait until ((Distance between (Position of (Ordered unit)) and (Position of Orc Burrow 0000 <gen>)) Less than or equal to 200.00), checking every 0.10 seconds


Unit - Change ownership of Orc Burrow 0000 <gen> to (Owner of (Ordered unit)) and Change color


Unit - Order (Target unit of issued order) to Orc Burrow - Battle Stations
Integerplus

Events


Unit - A unit Is loaded into a transport

Conditions


(Unit-type of (Transporting unit)) Equal to Orc Burrow

Actions


Set NumberOfUnitsInBurrow = (NumberOfUnitsInBurrow + 1)
Unload

Events


Unit - A unit Is issued an order targeting an object

Conditions


(Issued order) Equal to (Order(unload))

Actions


Set NumberOfUnitsInBurrow = (NumberOfUnitsInBurrow - 1)


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




NumberOfUnitsInBurrow Equal to 0



Then - Actions




Unit - Change ownership of (Ordered unit) to Neutral Passive and Change color




Unit - Change ownership of (Target unit of issued order) to (Triggering player) and Change color



Else - Actions




Do nothing
order

Events


Unit - A unit Is issued an order targeting an object


Unit - A unit Is issued an order targeting a point


Unit - A unit Is issued an order with no target

Conditions

Actions


Game - Display to (All players) the text: ((Name of (Ordered unit)) + (String((Issued order))))
Load

Events


Unit - A unit Is issued an order targeting an object

Conditions


And - All (Conditions) are true



Conditions




(Unit-type of (Target unit of issued order)) Equal to Orc Burrow




(Owner of (Target unit of issued order)) Equal to Neutral Passive

Actions


Wait until ((Distance between (Position of (Ordered unit)) and (Position of Orc Burrow 0000 <gen>)) Less than or equal to 200.00), checking every 0.10 seconds


Unit - Change ownership of Orc Burrow 0000 <gen> to (Owner of (Ordered unit)) and Change color


Custom script: call IssueTargetOrderBJ( GetOrderedUnit(), "smart", GetOrderTargetUnit() )