OK, that is so easy, I just misunderstood you bro, just use var instead of the define, I thought you were trying to separate them, here is what you need:
Code:
////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////

var g_over;

////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////

#define ship 1

////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////

function game_over()
{
	if(event_type == EVENT_IMPACT || event_type == EVENT_ENTITY)
	{
		wait(1);
		ent_remove(t_bod);
		ent_remove(t_gun);
		g_over = 1;
		ent_create("invader_over.mdl", vector (1000, 50, 20), NULL); //create lose frame
	}
}

action invader_attack()
{
	var attack = 0;
	set(my, PASSABLE);
	while(my)
	{
		wait(-1);
	}
}

action invader_one()
{
	c_setminmax(me);
	my.skill47 = ship; // I'm the ship
	my.emask |= (ENABLE_ENTITY | ENABLE_IMPACT);
	my.event = game_over;
	while(g_over != 1)
	{
		my.pan += 0.7;
		c_move (my, vector(imix, imiy, imiz), vector(imiax, imiay, imiaz), IGNORE_PASSABLE); // move the invader according to the ai action
		wait(1);
	}
	ent_remove(me);
}

action invader_two()
{
	c_setminmax(me);
	my.skill47 = ship; // I'm the ship
	my.emask |= (ENABLE_ENTITY | ENABLE_IMPACT);
	my.event = game_over;
	while(g_over != 1)
	{
		my.pan += 0.7;
		c_move (my, vector(imix, imiy, imiz), vector(imiax, imiay, imiaz), IGNORE_PASSABLE); // move the invader according to the ai action
		wait(1);
	}
	ent_remove(me);
}

action invader_three()
{
	c_setminmax(me);
	my.skill47 = ship; // I'm the ship
	my.emask |= (ENABLE_ENTITY | ENABLE_IMPACT);
	my.event = game_over;
	while(g_over != 1)
	{
		my.pan += 0.7;
		c_move (my, vector(imix, imiy, imiz), vector(imiax, imiay, imiaz), IGNORE_PASSABLE); // move the invader according to the ai action
		wait(1);
	}
	ent_remove(me);
}




Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung