Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _bb = (_this select 1);
- uavs = [ ];
- _bb setObjectTexture [0, "#(argb,512,512,1)r2t(uavrtt,1)"];
- /* create uav and make it fly */
- _uav = createVehicle ["B_UAV_01_F", (_this select 0) modelToWorld [0,10,2], [], 0, "FLY"];
- createVehicleCrew _uav;
- _uav lockCameraTo [(_this select 0), [0]];
- _uav flyInHeight 2;
- _uav allowDamage false;
- _grp = createGroup civilian;
- {
- [_x] joinSilent _grp;
- } forEach (crew _uav);
- _uav setFuel -1;
- /* add loiter waypoint */
- /*
- _wp = group uav addWaypoint [(getPos (_this)), 0];
- _wp setWaypointType "LOITER";
- _wp setWaypointLoiterType "CIRCLE_L";
- _wp setWaypointLoiterRadius 100;
- */
- /* create camera and stream to render surface */
- _cam = "camera" camCreate [0,0,0];
- _cam cameraEffect ["Internal", "Back", "uavrtt"];
- /* attach cam to gunner cam position */
- _cam attachTo [_uav, [0,0,0], "PiP0_pos"];
- /* make it zoom in a little */
- _cam camSetFov 0.1;
- /* switch cam to thermal */
- "uavrtt" setPiPEffect [2];
- _point = _cam;
- /* adjust cam orientation */
- _uav setVariable ["camera",_cam];
- uavs = uavs + [_uav];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement