Page 1 of 1

Pawn with Weapon

Posted: Tue Nov 01, 2005 11:21 am
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");
}

Posted: Wed Nov 02, 2005 3:07 am
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