Warcraft III resources & community, 2003–2006 · archived

Weapon Ammo/Realoding like in Marines

5 posts
#1

Weapon Ammo/Realoding like in Marines

I'm making a map based on the book Ice Station (Matt Reilly) and I would like it to have a weapons system similar to the owning one in Marines made by SentryIII. Where the weapon has charges, but doesn't disappear when they're used up, and you can reload without wasting ammo. I've tried doing it myself numerous times, with little success. Does anyone here know how it might be done?
#2

Scrap That

I got the ammo, item combining and reloading sorted by myself, now i'm just stuck on how i make him stop attacking when he runs out of ammo... currently he just keeps shooting.
#3
make a trigger with controls every 0.10 seconds of game time, when ammo = 0 order unit to stop attack, pretty simple here is the trigger in detail:

Event: every "X" seconds of game time

Condition: Ammo (when its a variable) equal to 0
or if u use wood/gold as the ammo and recharge packages just change it to when wood reaches 0 or so

Action: Order triggering unit to stop attack

these arent the original triggers just search for them they similar
#4
Thanks very much,
It didn't work specificly, but it got me on the right thought path, and now i've got it working, so i'm happy.
#5
np dude, im happy too when i can help ^_^