OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: fratton_station on 20 Aug 2005, 09:46:06

Title: Keep Sentry Standing
Post by: fratton_station on 20 Aug 2005, 09:46:06
Help. First time on here for over a year.  Come back to Flashpoint after getting fed up with the loons in Joint Ops!
I have forgotten a hell of a lot on the editing side of things. ???
question:
I have a soldier up in a watchtower.  How do I stop him from going to the prone postion when he spots the enemy?
Obviously if he is up in a tower and goes prone he cant see over the side of the tower. I need to keep him upright.
Title: Re:Keep Sentry Standing
Post by: bedges on 20 Aug 2005, 10:04:21
Code: [Select]
unit_name setunitpos "up"
and if he's in a guard tower, he won't be required to run anywhere, so to be on the safe side combine that with

Code: [Select]
unit_name disableai "move"
that should do the trick.
Title: Re:Keep Sentry Standing
Post by: Tyger on 20 Aug 2005, 12:50:06
you might want to also add:
Code: [Select]
unit_name disableAI "Target"

That stops the unit from moving to another position to attack enemy. Credits go to Mac for that one.
Title: Re:Keep Sentry Standing
Post by: macguba on 20 Aug 2005, 14:17:33
I got it from General Barron.
Title: Re:Keep Sentry Standing
Post by: Tyger on 21 Aug 2005, 11:45:30
Pardon me, credits go to General Barron for that one.  ;)
Title: Re:Keep Sentry Standing
Post by: fratton_station on 02 Sep 2005, 11:56:07
Thanks Everyone!  :D
Title: Re:Keep Sentry Standing
Post by: Dagon on 02 Sep 2005, 14:58:39
Another tip would be to remove any handguns and any binoculars the loon has. Otherwise he'll sometimes engage in such imposing endevours as glaring at you through binoculars when he should be shooting, or trying to set a new long-distance pistol shooting record.

Something to do with them wanting to use anything BUT their primary gun if they can't crouch or prone.