Asking for verification

Topics regarding Scripting with Reality Factory
Post Reply
User avatar
ArKanuS
Posts: 54
Joined: Wed Jan 23, 2008 7:29 am
Location: Perth, Australia

Asking for verification

Post by ArKanuS » Fri Apr 25, 2008 11:26 am

Whilst reading Dan Valeo's book on RF, I found a typo. It is bolded below:
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
Do they mean wkattack or wattack?

User avatar
ardentcrest
Posts: 735
Joined: Wed Jan 25, 2006 10:55 pm
Location: Ireland

Re: Asking for verification

Post by ardentcrest » Wed May 21, 2008 5:00 pm

all you need to make a turret actor

demo, scripts and a how to do it.

http://filestore.rfcommunity.0lx.net/do ... hp?list.15


hope this helps
He's a Bot Jim, But not as we know It.

Post Reply