Search the Community
Showing results for tags 'moveInTurret'.
Found 1 result
-
How to use moveInTurret script command?
HorribleGoat posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hello! I need some advice on how to populate empty turrets in a custom vehicle I have. The turret indexes are [0,0] [0,1] [0,2] [0,3] and Ive tried creating new units and moving them into the vehicle with moveInTurret command in dev console and via useraction executed .sqf but have not managed to get it to work. The turret gunner seats seem to work ok when units are placed in them in Eden but moveInTurret does not seem to work. :confused: :confused: I've got code as follows: //_veh = vehicle player; _veh = _this select 0; _gunnerL1 = "B_Pilot_F" createvehicle position _veh; _gunnerL2 = "B_Pilot_F" createvehicle position _veh; _gunnerR1 = "B_Pilot_F" createvehicle position _veh; _gunnerR2 = "B_Pilot_F" createvehicle position _veh; //creating the units, B_Pilot_F used for testing.. (short classname :9) //units appear around the vehicle as they should //Not sure if this is even needed, but saw it in one example and tried it.. _gunnerL1 assignAsTurret [_veh, [0,0]]; _gunnerL2 assignAsTurret [_veh, [0,1]]; _gunnerR1 assignAsTurret [_veh, [0,2]]; _gunnerR2 assignAsTurret [_veh, [0,3]]; //Moving the wannabe gunners into the right turrets.. _gunnerL1 moveinturret [_veh, [0,0]]; _gunnerL2 moveinturret [_veh, [0,1]]; _gunnerR1 moveinturret [_veh, [0,2]]; _gunnerR2 moveinturret [_veh, [0,3]]; //But it seems to do nothing :o _crew = fullcrew [_veh,"",true]; hint format ["%1",_crew]; //script runs to the end and hint shows none of the units enter the vehicle. Tried this with vanilla vehicles too and with other crew positions but just don't know what Im missing. Any advice?- 10 replies
-
- moveInTurret
- scripting
-
(and 1 more)
Tagged with: