Code: Select all
{
Spawn[()
{
Console(true);
AttributeOrder("health",20,"Die");
FindTargetOrder(250,"Alert","health");
SetFOV(360);
HotsilePlayer(true);
HostileSame(false);
HosileDifferent(false);
SetGroup("Enemy");
}]
Alert[()
{
AnimateStop("hit",0,"");
NewOrder("Attack");
}]
Attack[()
{
RotateToPlayer("idle",160,false,"");
FireProjectile("10mm_shell","BIP01 R FOREARM",0,0,0,"health","");
Delay("stattack",0.5,"");
RestartOrder();
}]
Another problem i have is the pawn only takes dmg if i shoot him in the feet. The crosshair only lights if i aim at his feet. Any help would be greatly appreciated.