I want to make the vehicle stop (0 movement speed) when there's no unit in its load but I failed. The vehicle still moves like usual. Pausing the unit makes it unable to load (cannot use ability). Any help please?
-
hijackvehicle
-

Events
-


Unit - A unit Begins casting an ability
-
-

Conditions
-


(Ability being cast) Equal to hijack dummy
-
-

Actions
-


Unit - Set Name of (Target unit of ability being cast) to Hijacked Vehicle
-


Unit - Change ownership of (Target unit of ability being cast) to Player 1 (Red) and Change color
-


Unit - Set (Target unit of ability being cast) movement speed to 0.00
-


Set hijackedvehcle = (Target unit of ability being cast)
-
-
-
movevehicle
-

Events
-


Unit - A unit Is loaded into a transport
-
-

Conditions
-

Actions
-


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



If - Conditions
-




(Transporting unit) Equal to hijackedvehcle
-
-



Then - Actions
-




Unit - Set hijackedvehcle movement speed to (Default movement speed of hijackedvehcle)
-
-



Else - Actions
-
-
-
-
stopvehicle
-

Events
-


Unit - A unit Begins casting an ability
-
-

Conditions
-

Actions
-


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



If - Conditions
-




(Ability being cast) Equal to Unload car
-




(Casting unit) Equal to hijackedvehcle
-
-



Then - Actions
-




Unit - Set hijackedvehcle movement speed to 0.00
-
-



Else - Actions
-
-
-
