string Name	= "双剑";
int Model =	13;
int Weapon = 40;
int Weapon2 = 31;
int Team = 1;
int View = 2000;
int Think = 150;
int	Attack1	= 15;
int Attack2 = 25;
int Attack3 = 45;
int	Guard =	15;
int	Dodge =	1;
int Jump = 10;
int Look = 2;
int Burst = 3;
int Aim = 80;
int GetItem = 0;
int Spawn = 51;
int HP = 3500;
int timer = 0;	
int now = 0;
	
int g_selfAddr;
int g_self;
void OnInit(int this)
{
	g_selfAddr = this;
}

void OnStart()
{
	int c = GetSelf(g_selfAddr);
	int player = GetChar("player");
	ChangeBehavior(c, "idle");
}

void  OnUpdate()
{
	int c = GetSelf(g_selfAddr);
	int player = GetChar("player");
	int now = GetGameTime();
SetTarget(0, "char", player);
SetTarget(3, "char", g_selfAddr);
if (Distance(0, 3) < 100&&now>timer)
{Perform(c, "faceto", player);timer=now+5;}
}