OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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.
-
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
unit_name disableai "move"
that should do the trick.
-
you might want to also add:
unit_name disableAI "Target"
That stops the unit from moving to another position to attack enemy. Credits go to Mac for that one.
-
I got it from General Barron.
-
Pardon me, credits go to General Barron for that one. ;)
-
Thanks Everyone! :D
-
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.