Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 1.05 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,10,2], [], 0, "FLY"];
  6. createVehicleCrew _uav;
  7. _uav lockCameraTo [(_this select 0), [0]];
  8. _uav flyInHeight 2;
  9. _uav allowDamage false;
  10. _grp = createGroup civilian;
  11. {
  12.     [_x] joinSilent _grp;
  13. } forEach (crew _uav);
  14. _uav setFuel -1;
  15.  
  16. /* add loiter waypoint */
  17. /*
  18. _wp = group uav addWaypoint [(getPos (_this)), 0];
  19. _wp setWaypointType "LOITER";
  20. _wp setWaypointLoiterType "CIRCLE_L";
  21. _wp setWaypointLoiterRadius 100;
  22. */
  23. /* create camera and stream to render surface */
  24. _cam = "camera" camCreate [0,0,0];
  25. _cam cameraEffect ["Internal", "Back", "uavrtt"];
  26.  
  27. /* attach cam to gunner cam position */
  28. _cam attachTo [_uav, [0,0,0], "PiP0_pos"];
  29.  
  30. /* make it zoom in a little */
  31. _cam camSetFov 0.1;
  32.  
  33. /* switch cam to thermal */
  34. "uavrtt" setPiPEffect [2];
  35. _point = _cam;
  36. /* adjust cam orientation */
  37. _uav setVariable ["camera",_cam];
  38. uavs = uavs + [_uav];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement