Page 1 of 1

Script not working

Posted: Mon May 28, 2007 6:34 am
by Jaguar_jwg
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?

Posted: Tue May 29, 2007 11:12 am
by Juutis
I don't see anything wrong with it. You are missing a } in the end of the script, but I suppose that's just a copy-paste mistake.

Posted: Tue May 29, 2007 7:50 pm
by Jaguar_jwg
Ok Thanks. I think I'll have to get back to this later.