• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Solved] car movement speed problem

Status
Not open for further replies.
Level 4
Joined
Sep 11, 2018
Messages
74
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
 
Status
Not open for further replies.
Top