Im trying to write a script for make a Automatic firing machine gun...but all my attemps are not really good.Anyone can show me a Lite-C script for doing that plz?
Re: Rate of Fire Control Script
[Re: Altarius]
#280194 07/21/0912:3907/21/0912:39
#define _can_fire skill99 //will write my.skill99 when compiling but makes it easier to read
then in your function have
Code:
#define key_fire key_a //same as above for for pressing key_a... change to appropriate fire key
while(key_fire){
if(my._can_fire){
my._can_fire = FALSE;
//bullet_spawn / call fire script, ent_create(bullet etc,,,
wait(-1); //wait 1 second until can fire again
my._can_fire = TRUE;
}
}
hopefully enough to point you oin the right direction *untested*
Re: Rate of Fire Control Script
[Re: MrGuest]
#280293 07/22/0903:3807/22/0903:38