You did the defines correct, or near correct on your last post.

Code:
#define health skill1
#define ammo skill2
#define maxammo skill3
#define weaponid skill4
#define maxweapon skill5 //to tell whats the max weapon id user has
//player1
action player1()
{
player = my;
my.health = 100;
my.ammo = 32;
my.weaponid = 1;
my.maxweapon = 1;
while (1)
{

if (my.health=>100) my.health=100;
if (my.ammo =<1) reload();
if (my.weaponid==1) my.maxammo = 32;
}
}

function reload ()
{
my.ammo = my.maxammo;
if (key_w==1)
{
ent_move(1,0);
ent_animate(me,"run",NULL,CYCLE);
}
}



But I gotta say the way your setting this is up is gonna give ya trouble in the future. There are some nice tutorials on litec. I'd check them out.

Last edited by oldschoolj; 09/30/07 03:36.

you can find me with my face in the keyboard, unshaven, listening to some nameless techno tragedy, and hashing through code over a cold cup a stale joe. __________________________________ yours truly