I apologize, everything works, and I didn't think anyone would really want anything as a reference for future problems, my code now works, I'm working on a run-time issue now that is completely unrelated, so sorry for the delay but here is what I did:
//define skills and flags
#define health skill1
#define velX skill2
#define velY skill3
#define velZ skill4
#define state skill5
#define damage skill6
#define invincible FLAG1
#define onGround FLAG2
...
function modelHit()
{
if (event_type == EVENT_IMPACT)
{
if(is(my,invincible)) //changed from my.invincible == ON
{ ... }
if(is(my,onGround)) //Changed from my.onGround == ON
{ ... }
}
...
}
//uses: health, velX, velY, velZ, state, damage, invincible, onGround
action makeGuard()
{
...
reset(my,invincible); //changed from my.invincible = OFF;
...
}