Ammunition system

Status
Not open for further replies.
I thought of creating an ammunition system for my map.

Such a simple thing with clips and reloading - this is no problem and i definitely dont need help there

But i was thinking of the event the units shoots and releases the bullet...
- I can get the even the projectile hits the target and deals damage
- I can get the event the unit gets the "Attack" Order

But both are not exactly the time the projectile is created (unless you set the "Animation Damage Point" value of the unit in the object editor to 0.00 which looks ugly)

Whats the best way to get this moment the projectile of a ranged unit is created?

I can imagine some modification with the "Unit Gets attacked" and a wait of the "Animation Damage Point"-value of the units and a check of the units order but all these ideas could be abuseable
 
do you mean -1 lumber and add 50 bullets cash? or you mean like sniper system?
 
Second event "unit attacks". Add a timer for however long it takes to get the shot off, then check if the unit is still on the "attack" order. Not perfect but it should work.
 
I dont know what the "Sniper system" is
yes a system with ammunition as lumber or gold and i need the time when the projectile is created

Yes , i thought of doing it this way with the timer too but if the unit would get an stop order it can have again the attack order when the timer expires (hard to explain)

But i got an idea with storing the No. of the shot in the game and a check of this number
 
Status
Not open for further replies.
Back
Top