Asking for verification
Posted: Fri Apr 25, 2008 11:26 am
Whilst reading Dan Valeo's book on RF, I found a typo. It is bolded below:
Do they mean wkattack or wattack?Making a Turret
All that is required to make the robot act as a turret
which can fire upon the player when approached, is to make
the robot face the player before it fires. A single command, is
all that is required to do this. Modify the Attack Order to add
the following command.
Attack[()
{
RotateToPlayer(“wattack”, 160, false, ””);
FireProjectile(“pistolbullet”,”HandR”,0,0,0,”health”,””);
Delay(“stattack”,1,””);
RestartOrder();
}]
RotateToPlayer is a very useful command that turns
the Robot into a dangerous player enemy. By adding this
command, the robot will turn to face the player before firing at
it. Here is a breakdown of the parameters.
· wkattack - This is the name of the animation to be played
while the rotation is occurring. In this case the animation is