this goes at the end of my P90 gun cog:
# ........................................................................................
user0:
SetMaterialCel(laseraimtex, 1);
SetFireWait(player, firewait - 0.04);
FireProjectile(player, laser, -1, -1, '0.0168 0.1896 0.00', '0 0 0', 0, 0, 0, 0);
Sleep(5);
SetMaterialCel(laseraimtex, 0);
return;
end
Is there a function which will keep user0 firing continuously? its a laser sight, and I want it to stay on, as well as the addcell bit
Ps, can normal fire still work when user0 is active?
# ........................................................................................
user0:
SetMaterialCel(laseraimtex, 1);
SetFireWait(player, firewait - 0.04);
FireProjectile(player, laser, -1, -1, '0.0168 0.1896 0.00', '0 0 0', 0, 0, 0, 0);
Sleep(5);
SetMaterialCel(laseraimtex, 0);
return;
end
Is there a function which will keep user0 firing continuously? its a laser sight, and I want it to stay on, as well as the addcell bit
Ps, can normal fire still work when user0 is active?
Code:
if(getThingFlags(source) & 0x8){ do her} elseif(getThingFlags(source) & 0x4){ do other babe} else{ do a dude}