Thanks
Code: Select all
{
start[ ()
{
Console(true);
AttributeOrder("enemy_health",10,"Death");
PlayAnimation("Idle", true, "");
Delay("Idle",3,"");
RotateMoveToPoint("walk",100,20,true,"footsteps\\m1.wav");
MoveToPoint("walk",50,"footsteps\\m1.wav");
NewOrder("Patrol");
} ]
Death[ ()
{
AnimateStop("die_1",0.5,"");
SetEventState("Enemy1Dead",true);
}
]
Patrol [()
{
NextPoint();
RotateMoveToPoint("walk",100,20,true,"footsteps\\m1.wav");
MoveToPoint("walk",50,"footsteps\\m1.wav");
RestartOrder();
}
]
}