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

[Trigger] Ammo System

Status
Not open for further replies.
Level 7
Joined
Mar 13, 2008
Messages
228
I need an ammo system, like when a ranged hero shoots an arrow the hero looses on arrow that the hero has in its inventory. And one slot in the inventory can carry 200 arrows and u only loose 1 when u shoot.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
Basically, you need a JASS system that check if appon attacking, it is not issued an order to attack before it hits the attack backward's swing point which is when the projectile is launched). A timer is all that should be needed with the standard event and a few variables.

As for the arrows, a simple statking system could be used. Check out the tutorials section and spells section.
 
Status
Not open for further replies.
Top