Scripts / Need Help on my script

Author
Message
js
9
Years of Service
User Offline
Joined: 24th Sep 2015
Location:
Posted: 1st Oct 2015 13:23
Hi, can someone help me out with this, i tried adding health to the entity wall and the lua script that i have added on the entity wall is named ammocount , now the problem is , when i tried firing on that wall at CLOSE RANGE my script works correctly, by adding 1 ammo on the ammo variable, however when i tried firing on that wall again from AFAR , it adds a significant random huge number which is greater than 1 instead of 1 ...

Here is my script


Here is a screen shot when i tried firing the wall entity at CLOSE RANGE


Here is a screenshot when i tried firing the wall again for the 2nd time from AFAR
PM
AstrobloodKnight
9
Years of Service
User Offline
Joined: 3rd Aug 2015
Location:
Posted: 1st Oct 2015 14:02
could have a lot of reasons for doing this damage or player distance may play a factor it how much damage is does to the target there for the health may stay at zero long adding to the ammo count i am not sure just a theory and i haven't tested it yet just something to keep in mind
PM

Login to post a reply

Server time is: 2024-12-22 07:07:29
Your offset time is: 2024-12-22 07:07:29