Advertisement
elenalotus

Untitled

Apr 28th, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. fnc_TLOWeaponRotate = {
  2. _tournable = createVehicle [
  3. "Land_Can_V3_F",
  4. _this select 0,
  5. [],
  6. 0,
  7. "CAN_COLLIDE"
  8. ];
  9. _tournable hideObject true;
  10. _arme = createVehicle [
  11. "WeaponHolderSimulated",
  12. _this select 0,
  13. [],
  14. 0,
  15. "CAN_COLLIDE"
  16. ];
  17. _arme addWeaponCargoGlobal [_this select 1, 1];
  18. _arme attachTo [_tournable, [0,-0.63,5.7]];
  19. _arme setVectorDirAndUp [[0,0,1],[0,-1,0]];
  20. _time = time + 10;
  21. _dir = getDir _tournable;
  22. waitUntil {
  23. _dir = _dir + (
  24. if (_dir > 360) then [{-360},{3}]
  25. );
  26. _tournable setDir _dir;
  27. time > _time
  28. };
  29. deleteVehicle _arme;
  30. deleteVehicle _tournable;
  31. };
  32. _null = [
  33. player modelToWorld [0,2,0],
  34. "srifle_GM6_F"
  35. ] spawn fnc_TLOWeaponRotate;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement