• 🏆 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] Transport unit

Status
Not open for further replies.
Level 4
Joined
Jul 10, 2013
Messages
73
I worked on this earlier and I had it working... so my transport unit default movement is 0 making it immobile, and when you use your Hero to get in the transport it will go back up to 450 speed. When my Hero jumps in the transport right now nothing happens.

Everything works if the default movement of the transport is 450, but this isn't what I want - I want the transport to not be able to move unless the Hero is inside of it.

  • transport
    • Events
      • Game - CargoEvent becomes Equal to 1.00
    • Conditions
    • Actions
      • Unit - Set CargoTransportUnit[UDex] movement speed to 450.00
  • transport unload
    • Events
      • Game - CargoEvent becomes Equal to 2.00
    • Conditions
    • Actions
      • Unit - Set CargoTransportUnit[UDex] movement speed to 0.00
 
Last edited:
With 0 default movementspeed the unit don't gain the ability to move.
You might set movespeed of the transporter to 0 at map enter / on map init.
Setting movementspeed considers lower movementspeed Limit (default 150, hardcoded 1).​

Other options are:
  • Set ProperUnitWindow
  • Ensnare casting with an dummie
  • Use an speedskill (AIms) which reduces speed to 1 by adding - 600 speed.
    • On Loading remove the skill.
    • On Emptying readd skill.
  • Morph the Transporter between 2 Types, 1 has speed other can't move.
    • requiers 2 chaos skill per transporter.
    • or an morphing spell per transporter.
 
Status
Not open for further replies.
Top