• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Vehicle System

Status
Not open for further replies.
Level 11
Joined
Aug 11, 2009
Messages
605
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
605
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