Hey, im having some problems with a script. When i press R button (to reload) i start a script, in the script i wrote this:
The OBJ_44 is the shoot input, when i press R the input doesn't stop and you can keep shooting while you reload, and the same happens with the switch, i need start it after reload and nothing happens, the gun skinmesh is static. What can i do
Code: [Select]
int count = 0;
void Main()
{
if (iKeyDown(iKeyCode("DIK_R"))){
iObjectStop (OBJ_44);
}
if (count == 300); iObjectStart (OBJ_44);
count++;
}
The OBJ_44 is the shoot input, when i press R the input doesn't stop and you can keep shooting while you reload, and the same happens with the switch, i need start it after reload and nothing happens, the gun skinmesh is static. What can i do