Advertisement
Guest User

Untitled

a guest
Jan 20th, 2024
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. if (!isServer) exitWith {};
  2. params ["_MRAP"];
  3. _relpos = _MRAP getRelPos [5, 90];
  4. _turret = "I_LT_01_Cannon_F" createVehicle _relpos;
  5. _turret attachTo [_MRAP, [0.302246,-2.22168,0.580989]];
  6. _turret addMagazineTurret ["60Rnd_20mm_HE_shells", [0]];
  7. _turret addMagazineTurret ["60Rnd_20mm_HE_shells", [0]];
  8. _turret addMagazineTurret ["200Rnd_762x51_Belt_Yellow", [0]];
  9. _turret addMagazineTurret ["200Rnd_762x51_Belt_Yellow", [0]];
  10. _turret setObjectTextureGlobal [0, ""];
  11. _turret setObjectTextureGlobal [1,"a3\armor_f_tank\lt_01\data\lt_01_cannon_olive_co.paa"];
  12. _turret setObjectTextureGlobal [2, ""];
  13. _turret setObjectTextureGlobal [3, ""];
  14. _turret lockDriver true;
  15. _turret allowCrewInImmobile true;
  16. group _MRAP addvehicle _turret;
  17. _MRAP addMagazineTurret ["SmokeLauncherMag", [-1]];
  18. _MRAP addWeaponTurret ["SmokeLauncher", [-1]];
  19. _MRAP addEventHandler ["deleted", "deleteVehicle _turret;"];
  20. _driver = assignedDriver _MRAP;
  21. "OAF_Core_Motorized_Rifleman" createUnit [_relpos, group _driver, "myUnit = this"];
  22. myUnit assignAsTurret [_turret, [0]];
  23. myUnit assignAsGunner _turret;
  24. myUnit moveInGunner _turret;
  25. myUnit moveInTurret [_turret, [0]];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement