Search the Community
Showing results for tags 'civilian in panic'.
Found 1 result
-
When I create blufor units in the air, and make them use parachutes to touch the ground safely, everything runs fine, but if I do the same with civilians, the civilian units get panic (guess)! The same happens if I use ZEUS to throw the civilian in the air. Their parachute is opened and, when they touch the ground, they're crouched. What I want: That civilian parachuters when on land, walk normally, in the "UP" position. My snippet: Right before the CIVILIAN unit is created in the air, falling down from 1km altitude with a parachute bag: _grp setBehaviourStrong "CARELESS"; _grp allowFleeing 0; { _x setBehaviour "CARELESS"; _x disableAI "FSM"; } forEach units _grp; After landing: { // Wait the own unit (_x) touch the ground if not yet: waitUntil { sleep 3; (getPos _x select 2) < 0.2 || !alive _x }; sleep 2; _x enableAI "FSM"; _x switchmove ""; _x setUnitPos "UP"; //_x setUnitPosWeak "UP"; } forEach units _grp; The bad result: always the civilian units are walking in a crouch, even if there's no opfor, blufor, or independent on the map. Commands I'm using: https://community.bistudio.com/wiki/setBehaviourStrong https://community.bistudio.com/wiki/allowFleeing https://community.bistudio.com/wiki/disableAI https://community.bistudio.com/wiki/setUnitPosWeak https://community.bistudio.com/wiki/setUnitPos https://community.bistudio.com/wiki/switchAction