Pawn with Weapon

Topics regarding Scripting with Reality Factory
Post Reply
LHoesch

Pawn with Weapon

Post by LHoesch »

Hi,
I have this Script:
Where i must edit the Script,to giving a enemy a weapon?



Spawn[ ()
{
Console(true);
Scale(SCALE); // scale the actor
if(BOXWIDTH > 0)
{
BoxWidth(BOXWIDTH*SCALE); // set bounding box width/depth
}
AttributeOrder(HEALTHATTRIBUTE, HEALTH, "Death"); // give monster health
HostilePlayer(HOSTILEPLAYER); // set who monster is hostile to
HostileSame(HOSTILESAME);
HostileDifferent(HOSTILEDIFFERENT);
SetFOV(FOV); // set field of view
SetGroup(GROUP); // assign a group to belong to
FindTargetOrder(SIGHTDIST, "FoundTarget", DAMAGEATTRIBUTE); // seen a target to chase
AddPainOrder("IdlePain", 100); // show pain and trigger alert
AvoidOrder("Avoidance");
AddTriggerOrder("IdleToAlert", ALERTTRIGGER, 0); // go to alert when triggered
AddTriggerOrder("GoLowCheck", INTERACTTRIGGER, 0); // go to interactmode when triggered
RotateToPoint(STAND, YAWSPEED, false, ""); // go to point if any specified
MoveToPoint(WALK, WALKSPEED*SCALE, "");
if(PATROL = false)
{
NewOrder("Idle");
}
else
{
NewOrder("Patrol");
}
hike1
RF FAQ-Keeper
Posts: 607
Joined: Tue Jul 05, 2005 4:19 am
Contact:

Post by hike1 »

There's a command called AddWeapon, I believe, but
I could never get it to work, I just put a weapon in my Pawn's
hand during the modeling process.

rffaq http://terrymorgan.net/rffaq.zip
Demos http://terrymorgan.net/download.htm
Post Reply