OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: -Jenkins on 23 Jul 2004, 13:10:57

Title: Holding RPGs
Post by: -Jenkins on 23 Jul 2004, 13:10:57
Hey,

I searched on this a few times, can't find anything.

How do you make an AI soldier hold an RPG, and keep it up? Is it possible? Thanks.


EDIT: I found out how to do it
this switchmove "CrouchToWeapon"

But the AI doesn't keep the RPG to shoudler, he puts it on his back right after he gets it up.
Title: Re:Holding RPGs
Post by: Void-DK on 23 Jul 2004, 15:31:27
Try unit selectweapon "whateverthenameoftheRPGis"

not 100% but believe that one works.


-Tet

Title: Re:Holding RPGs
Post by: DBR_ONIX on 23 Jul 2004, 16:18:52
Yeah,
this selectweapon "RPGLauncher"
Or, remove all they're other weapons..?
- Ben
Title: Re:Holding RPGs
Post by: Captain Courageous on 24 Jul 2004, 16:32:48
If you put an RPG soldier onto 'Combat' mode they usually hold the Launchers (this setBehaviour "combat"). You could also fiddle around with Unit Positions (eg Standing, Auto or Prone; this setUnitPos "UP"/"DOWN"/"AUTO").

Hope this helps a little!  ::)