# RyanHunter24 :
That's the problem. When the soldiers behind cover (the ones that need to stay standing up) see the enemy units, they fire off a few shots, then crouch behind cover. It completely ends the firefight, as they are all hiding.
I've been using the setunitpos script for quite some time with complete success, but for some reason its not working in this scenario.
It took a while to see it and it does seem that setunitpos fails when a unit can hide behind an object, out in the open they stay upright.
I did put setposunit "up" into a loop and it seems to fix the problem.
place the execvm line into the units init, it will force the unit to stand every half second or remove the sleep and enable the waituntil, that will check the units height and force him to stand if he tries to crouch.
save the script as "keep_up.sqf"
//nul=[this] execvm "keep_up.sqf"
_who = _this select 0;
while {alive _who} do {
//waitUntil {(_who selectionPosition "launcher" select 2)<1.2};
_who setunitpos "up";
sleep 0.5;
};