mtt_deploy_droids.sqf 604 B

1234567891011121314151617181920212223
  1. params["_vic"];
  2. //Uniforms to select from
  3. _vic setfuel 0;
  4. _vic setVariable ['RD501_Deployed',true,true];
  5. _handle = [_vic] spawn {
  6. params["_mttpos"];
  7. _mttopen = "Swop_mtt_static" createVehicle [0,0,0];
  8. [_mttopen , true] remoteExec ["hideObjectglobal", 0];
  9. sleep 1;
  10. _mttopen attachTo [_mttpos,[0,0,0]];
  11. _mttopen setdir 180;
  12. sleep 1;
  13. [_mttopen , false] remoteExec ["hideObjectglobal", 0];
  14. sleep 0.5;
  15. _mttpos setobjecttextureglobal [0,""];
  16. _mttpos setobjecttextureglobal [1,""];
  17. _mttpos removeWeaponTurret["Cannon_MTT_mc", [0]];
  18. _mttpos removeWeaponTurret["Cannon_MTT_mc2", [0,0]];
  19. };