• 🏆 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!

Vehicle System

Status
Not open for further replies.
Level 11
Joined
Aug 11, 2009
Messages
594
So I am working on a Vehicle system and need some help if anyone can. Here is info on the system.

- Each vehicle can carry 1 Hero. If a unit is loaded into it, it should be unloaded immediatly, so only Heroes work.
- Loading your Hero into a vehicle requires a certain rank (which in my map is food), so make a check if players food is 1 or higher. (And not food available like 0/1 but food used for example 1/1.)
- When a vehicle has no Hero inside it, it can't move or attack. Movement is easy, just make a trigger which sets movement speed to 0, its removing the attack I don't know how to do. Perhaps just pause the vehicle when a Hero is not inside.. but is it still possible for enemy units to attack a paused unit? But then again stand animations wouldn't work..
- When a Hero is inside a vehicle it can move and attack.

And that is it. I have three different vehicles but I just need triggers for one and I can fix so it works with 3 after. Thanks in advance :)

Note: If possible, when a Hero is not inside a vehicle, don't change it to Neutral Passive (this would remove the attack, but also make it possible for enemy Heroes to steal it, or other players with appropriate rank, I wan't vehicles to be owned by the player who buys it at all times.)
 
Level 11
Joined
Aug 11, 2009
Messages
594
Nice, thanks alot m8, I'll get home in a few hours, I'll try it out then :D

Worked perfectly :) I'll return if I find any future bugs. Thanks again for the help
 
Last edited:
Status
Not open for further replies.
Top