Script not working

Topics regarding Scripting with Reality Factory
Post Reply
Jaguar_jwg
Posts: 96
Joined: Sun May 20, 2007 7:47 am

Script not working

Post 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?
User avatar
Juutis
Posts: 1511
Joined: Thu Jan 12, 2006 12:46 pm
Location: Finland

Post 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.
Pain is only psychological.
Jaguar_jwg
Posts: 96
Joined: Sun May 20, 2007 7:47 am

Post by Jaguar_jwg »

Ok Thanks. I think I'll have to get back to this later.
Post Reply