OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: abomb1508 on 05 Dec 2002, 02:25:36

Title: Troops in a building
Post by: abomb1508 on 05 Dec 2002, 02:25:36
i have placed a bunch of Americans at varying defensive positions in a building in Petrovice.  then i have placed 4 russian squads about 500m away. the russians run in in combat mode, the americans have a turkey shoot. just what i wanted. but i have two problems...

1.some soldiers that are behind walls lie down, stick their gun through the wall and shoot. this looks stupid and is unfair. is there a switchmove command that can force the soldiers to stay on their feet? i would also like a command to force some of the soldiers to lie down.

2. the soldiers at the moment are not linked together, but i have linked them in a squad, with no adverse effects, and improved performance. but after 30 seconds of combat, a few troops decide to move around, and thus lose their excellent firing positions. is ther a way to force the troops to stay in exactly one place?

i will place the attachment here. please feel free to do what you wish with this file, but give credit if it is used in a mission. all ideas and help accepted.

Cheers,

A-Bomb

Title: Re:Troops in a building
Post by: AE7THSF on 05 Dec 2002, 09:03:45
HERE U COULD DO THIS
PUT THIS in the soldiers init

this setunitspos "up"


that makes him stand up and not lay ever
Title: Re:Troops in a building
Post by: AE7THSF on 05 Dec 2002, 09:05:34
and the other thing i know there is but cant think of it
Title: Re:Troops in a building
Post by: abomb1508 on 06 Dec 2002, 13:17:36
cheers man.

and can you replace "up" with "down" and force them to lie down?
Title: Re:Troops in a building
Post by: AE7THSF on 07 Dec 2002, 06:26:39
yea
Title: Re:Troops in a building
Post by: Gameer_77 on 07 Dec 2002, 14:12:45
unitname stop true

:)

Gameer
Title: Re:Troops in a building
Post by: LCD on 07 Dec 2002, 14:49:58
stop command wil prevent da unit from shoting  :o - so i sugest u use

dostop unitname

LCD OUT