I think I may have posted this in the wrong section.
I am using this script with a robot pawn
{
Spawn[()
{
Console(true);
SetFOV(360);
HostilePlayer(true);
HostileSame(false);
HostileDifferent(false);
SetGroup("Enemy");
AttributeOrder("health",20,"Die");
FindTargetOrder(200,"Alert","health");
}]
Alert[()
{
AnimateStop(“walk”,0,””);
}]
Die[()
{
Remove(true);
}]
When my player comes within 200 texels of the robot, I get this message from the console:
scripts\my_robot.s:0-Field Alert*not found*
I can't figure out the problem. Can anyone help?
Script not working
-
- Posts: 96
- Joined: Sun May 20, 2007 7:47 am