Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 1.02 KB | None | 0 0
  1. _bb = (_this select 1);
  2. uavs = [ ];
  3. _bb setObjectTexture [0, "#(argb,512,512,1)r2t(uavrtt,1)"];
  4. create uav and make it fly
  5. _uav = createVehicle ["B_UAV_01_F", (_this select 0) modelToWorld [0,100,100], [], 0, "FLY"];
  6. createVehicleCrew _uav;
  7. _uav lockCameraTo [(_this select 0), [0]];
  8. _uav flyInHeight 100;
  9. _uav allowDamage false;
  10. _uav setCaptive true;
  11. _uav attachTo [laptop,[0,100,100]];
  12. _uav setFuel -1;
  13.  
  14. /* add loiter waypoint */
  15. /*
  16. _wp = group uav addWaypoint [(getPos (_this)), 0];
  17. _wp setWaypointType "LOITER";
  18. _wp setWaypointLoiterType "CIRCLE_L";
  19. _wp setWaypointLoiterRadius 100;
  20. */
  21. /* create camera and stream to render surface
  22. _cam = "camera" camCreate [0,0,0];
  23. _cam cameraEffect ["Internal", "Back", "uavrtt"];
  24.  
  25. /* attach cam to gunner cam position
  26. _cam attachTo [_uav, [0,0,0], "PiP0_pos"];
  27.  
  28. /* make it zoom in a little
  29. _cam camSetFov 0.1;
  30.  
  31. /* switch cam to thermal
  32. "uavrtt" setPiPEffect [2];
  33. _point = _cam;
  34. /* adjust cam orientation
  35. _uav setVariable ["camera",_cam];
  36. uavs = uavs + [_uav];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement