Jump to content
Sign in to follow this  
avibird 1

command code to move in as loader in a M1A2_TUSK_MG?

Recommended Posts

hello all been away from ARMA for a bit! simple question but forget how.

What is the commandline to add a unit as the loader position of a M1A2_TUSK_MG for example

FOB1Tank1 = createVehicle ["M1A2_TUSK_MG", _pos, [], 0, "FORM"];

FOB1Tank1c1 = FOB1Tanks createUnit ["USMC_Soldier_Crew", [0,0,1], [], 0, "CAN_COLLIDE"];

FOB1Tank1c1 moveInDriver FOB1Tank1;

FOB1Tank1c2 = FOB1Tanks createUnit ["USMC_Soldier_Crew", [0,0,2], [], 0, "CAN_COLLIDE"];

FOB1Tank1c2 moveInGunner FOB1Tank1;

FOB1Tank1c3 = FOB1Tanks createUnit ["USMC_Soldier_Crew", [0,0,3], [], 0, "CAN_COLLIDE"];

FOB1Tank1c3 moveInCommander FOB1Tank1;

FOB1Tank1c4 = FOB1Tanks createUnit ["USMC_Soldier_Crew", [0,0,4], [], 0, "CAN_COLLIDE"];

FOB1Tank1c4 moveInTurret FOB1Tank1;

I have attempted moveInTurret, moveInGunner, moveInCargo ect.

Thanks AVIBIRD 1

---------- Post added at 16:05 ---------- Previous post was at 14:50 ----------

So I think the code is unitObject moveInTurret [tankObject, [0, 1]];

FOB1Tank1c4 = FOB1Tanks createUnit ["USMC_Soldier_Crew", [0,0,4], [], 0, "CAN_COLLIDE"];

FOB1Tank1c4 moveInTurret FOB1Tank1;

so if I use the code above like this

FOB1Tank1c4 moveInTurret [FOB1Tank2,[0, 1]]; but what do I use in the FOB1Tank1c4 = FOB1Tanks createUnit ["USMC_Soldier_Crew", [0,0,4], [], 0, "CAN_COLLIDE"];

I have tryed

FOB1Tank1c4 = FOB1Tanks createUnit ["USMC_Soldier_Crew", [], 0, "CAN_COLLIDE"];

FOB1Tank1c4 = FOB1Tanks createUnit ["USMC_Soldier_Crew", [0,1,0], 0, "CAN_COLLIDE"];

FOB1Tank1c4 = FOB1Tanks createUnit ["USMC_Soldier_Crew", [0,1], 0, "CAN_COLLIDE"];

FOB1Tank1c4 = FOB1Tanks createUnit ["USMC_Soldier_Crew", [0, 1]], 0, "CAN_COLLIDE"];

Any input would be great Avibird

Share this post


Link to post
Share on other sites

Your code is a bit off, try this:

FOB1Tank1 = createVehicle ["M1A2_TUSK_MG", _pos, [], 0, "NONE"];

FOB1Tank1c1 = FOB1Tanks createUnit ["USMC_Soldier_Crew", _pos, [], 0, "FORM"];

FOB1Tank1c1 moveInDriver FOB1Tank1;

FOB1Tank1c2 = FOB1Tanks createUnit ["USMC_Soldier_Crew", _pos, [], 0, "FORM"];

FOB1Tank1c2 moveInGunner FOB1Tank1;

FOB1Tank1c3 = FOB1Tanks createUnit ["USMC_Soldier_Crew", _pos, [], 0, "FORM"];

FOB1Tank1c3 moveInCommander FOB1Tank1;

FOB1Tank1c4 = FOB1Tanks createUnit ["USMC_Soldier_Crew", _pos, [], 0, "FORM"];

FOB1Tank1c4 moveInTurret [FOB1Tank1,[0, 1]];

_pos should of course be a valid position and FOB1Tanks and valid group you created.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×