SA-MP Forums Archive
minigun relode script [HELP] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: minigun relode script [HELP] (/showthread.php?tid=410162)



minigun relode script [HELP] - Er@x3r - 24.01.2013

some1 know how to make an relode script? (for minigun)


Re: minigun relode script [HELP] - SKAzini - 24.01.2013

You could count for how long the minigun has been shot and then play a reloading anim, this however could be a resource-heavy way to do it.


Re: minigun relode script [HELP] - gnoomen2 - 24.01.2013

when a key is being pressed start a timer, and then the timer starts a reload animation.


Re: minigun relode script [HELP] - SKAzini - 27.01.2013

When on foot, the FIRE key is pressed, having minigun in hand, use a timer every 500 ms which adds 1 to a variable, when the variable reaches lets say 5, play reloading anim. I don't know if this is the better way to do it or not.