OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Durandal on 01 Jan 2003, 21:34:37

Title: Spotter for sniper team
Post by: Durandal on 01 Jan 2003, 21:34:37
Quick and dirty question.

How do I get a unit to get prone and use binoculars?  I've got a two-man sniper team set up.  I've got them both prone with: this SetUnitPos "down"

But I want the spotter to have his binocs out and use them, and I'm not sure how to go about doing that.

Thanks!

-Durandal
Title: Re:Spotter for sniper team
Post by: Silver Fox on 01 Jan 2003, 22:19:15
First add Binos for them to use (Sniper is the unit name):

Sniper addweapon "Binocular"


Then use this to make them look through them with:

Sniper playmove "StandToBinocStand"


Then when you want them to stop use this:

Sniper playmove "BinocStandToStand"


That should work a treat

 :cheers: