string Name = "ั๎ิูะห";
int Model = 40;
int Weapon = 64;
int Weapon2 = 64;
int Team = 1;
int View = 300;
int Think = 90;
int Attack1 = 30;
int Attack2 = 30;
int Attack3 = 30;
int Guard = 10;
int Dodge = 10;
int Jump = 20;
int Look = 20;
int Burst = 60;
int Aim = 100;
int GetItem = 0;
int Spawn = 133;
int HP = 8000;
	


int trg0 = 0;
int timer1 = 0;

int g_self;
int g_selfAddr;
OnInit(int this)
{
	g_selfAddr = this;
}

OnStart()
{
	g_self = GetSelf(g_selfAddr);
	ChangeBehavior(g_self, "idle");
}
OnUpdate()
{
	int player = GetAnyChar("player");
	int now = GetGameTime();
	if (trg0==0 && now>timer1)
	{
		SetTarget(1, "char", g_self);
		SetTarget(0, "char", player);
		if (Distance(0, 1) < 300)
		{
			View  = 200;
			Think = 1000;
			Jump = 0;
			
			UpdateAIAttrib(g_self);
			trg0 = 1;
			timer1 = now + 3;
		}
	}
	if (trg0==1)
	{
		SetTarget(1, "char", g_self);
		SetTarget(0, "char", player);
		if (Distance(0, 1) >= 300 && now>=timer1)
		{
			View  = 300;
			Think = 90;
			Jump = 10;
			
			UpdateAIAttrib(g_self);			
			trg0 = 0;
			timer1 = now + 1;
		}
	}
}