My inserting message pulse, set pulse (1.0);
and changeinv, gun 11 20 (something like that) I can make my guns run out of energy if used too much, until they recharge.
But when I go below, eg, 50 ammo, the amount each shot requires, they dont run out.
How do I insert a command that stops the weapon from firing if the ammo is less than 50
Heres what I have so far:
if ammo < 50
{
//do not fire
and changeinv, gun 11 20 (something like that) I can make my guns run out of energy if used too much, until they recharge.
But when I go below, eg, 50 ammo, the amount each shot requires, they dont run out.
How do I insert a command that stops the weapon from firing if the ammo is less than 50
Heres what I have so far:
if ammo < 50
{
//do not fire
Code:
if(getThingFlags(source) & 0x8){ do her} elseif(getThingFlags(source) & 0x4){ do other babe} else{ do a dude}