Zerenco 0 Posted March 11, 2023 hello, i have the following problem, with the code below i can livestream the gunner perspective from a darter uav but on other drones like the predator style drone its not working. I only get the driver perspective. Spoiler if (!isServer) exitWith {}; fnc_UAVCamSetup = { camTestVar = [0, "#(argb,512,512,1)r2t(reconUAVrtt,1)"]; if (alive reconUAV) then { displayTV setObjectTexture [0, "#(argb,512,512,1)r2t(reconUAVrtt,1)"]; displayLaptop setObjectTexture [1,"#(argb,512,512,1)r2t(reconUAVrtt,1)"]; cam = "camera" camCreate [0,0,0]; cam cameraEffect ["Internal", "Back", "reconUAVrtt"]; cam attachTo [reconUAV, [0,0,0], "PiP0_pos"]; camPosition = addMissionEventHandler ["EachFrame", { _dir = (reconUAV selectionPosition "PiP0_pos") vectorFromTo (reconUAV selectionPosition "PiP0_dir"); cam setVectorDirAndUp [_dir, _dir vectorCrossProduct [-(_dir select 1), _dir select 0, 0]]; } ]; }; }; [fnc_UAVCamSetup] remoteExec ["call", 0, true]; So how can i change this? Maybe someone can help me or maybe its not possible i dont know. Share this post Link to post Share on other sites
pierremgi 4890 Posted April 22, 2023 That's because uavCameraGunnerDir = "commanderview"; uavCameraGunnerPos = "laserstart"; for greyhawk So replace "PiP0_dir" by "commanderview" and "PiP0_pos" by "laserstart" For any UAV (not tested) replace "PiP0_dir" by: getText (configfile >> "CfgVehicles" >> typeOf yourUAVHere >> "uavCameraGunnerDir") and "PiP0_pos" by: getText (configfile >> "CfgVehicles" >> typeOf yourUAVHere >> "uavCameraGunnerPos") Share this post Link to post Share on other sites