- 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.)
- 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.)