Nathan0093
New Member
- Reaction score
- 4
I tried to use the function "call RemoveLocation(udg_) but everytime I save WE would say that I didnt do it right. Can anyone take a look at this trigger and help me correct it?
Code:
SW Bridge LR
Events
Unit - A unit enters SW Bridge Left Enter <gen>
Unit - A unit enters SW Bridge Left Enter 2 <gen>
Unit - A unit enters SW Bridge Left Enter 3 <gen>
Conditions
Or - Any (Conditions) are true
Conditions
(Unit-type of (Triggering unit)) Equal to Merchant Vessel
(Unit-type of (Triggering unit)) Equal to Transport Ship
(Unit-type of (Triggering unit)) Equal to Assault Ship
(Unit-type of (Triggering unit)) Equal to Demolition Ship
(Unit-type of (Triggering unit)) Equal to War Galley
(Unit-type of (Triggering unit)) Equal to Ballistic Frigate
(Unit-type of (Triggering unit)) Equal to Cannon Galleon
(Unit-type of (Triggering unit)) Equal to Hydra
(Unit-type of (Triggering unit)) Equal to Mur'gul Tidewarrior
(Unit-type of (Triggering unit)) Equal to Snap Dragon
(Unit-type of (Triggering unit)) Equal to Sea Giant
(Unit-type of (Triggering unit)) Equal to Giant Sea Turtle
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Triggering unit) is selected by (Owner of (Triggering unit))) Equal to True
Then - Actions
Set BridgeLocation[(Integer A)] = (Center of SW Bridge Right Exit <gen>)
Unit - Hide (Triggering unit)
Unit - Move (Triggering unit) instantly to BridgeLocation[(Integer A)], facing (Facing of (Triggering unit)) degrees
Wait 2.00 game-time seconds
Unit - Unhide (Triggering unit)
Selection - Select (Triggering unit) for (Owner of (Triggering unit))
Unit - Order (Triggering unit) to Right-Click CurrentTargetPointShip[(Custom value of (Triggering unit))]
[U]Custom script: call RemoveLocation(udg_BridgeLocation[(Integer A)])[/U] Else - Actions
Set BridgeLocation[(Integer A)] = (Center of SW Bridge Right Exit <gen>)
Unit - Hide (Triggering unit)
Unit - Move (Triggering unit) instantly to BridgeLocation[(Integer A)], facing (Facing of (Triggering unit)) degrees
Wait 2.00 game-time seconds
Unit - Unhide (Triggering unit)
Unit - Order (Triggering unit) to Right-Click CurrentTargetPointShip[(Custom value of (Triggering unit))]
[U]Custom script: call RemoveLocation(udg_BridgeLocation[(Integer A)])[/U]