- Joined
- Oct 2, 2006
- Messages
- 1,317
I was created my ammo sistem:
I have added mana for all units.
Lose ammo triger:
Events:
Unit - A unit is attacked.
Action:
Set mana of attacking unit to mana of attacking unit - 1.
No ammo triger:
Events:
Unit - A unit is attacked.
Condition:
Mana of attacking unit is equal to 0.
Action:
Issue order to attacking unit stop
This is okay, but if I use the attack ground order, the unit dont loses mana, and can attack ground without ammo.
How make the unit lose ammo attacking the ground?
I have added mana for all units.
Lose ammo triger:
Events:
Unit - A unit is attacked.
Action:
Set mana of attacking unit to mana of attacking unit - 1.
No ammo triger:
Events:
Unit - A unit is attacked.
Condition:
Mana of attacking unit is equal to 0.
Action:
Issue order to attacking unit stop
This is okay, but if I use the attack ground order, the unit dont loses mana, and can attack ground without ammo.
How make the unit lose ammo attacking the ground?