• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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,202
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