Jump to content
Leon Harrington

"Live drone feed" displayed to screen disappears when player goes into arsenal

Recommended Posts

Hi guys i need help again with my mission please 

I've got the feed working on the rugged large screen, but when you enter and leave arsenal in multiplayer, the "camera" no longer displays on the screen. It's goes to black screen.

 

I've played around with killzone's drone feed script:

 

/* create render surface */
tv setObjectTextureGlobal [0, "#(argb,512,512,1)r2t(uavrtt,1)"];

uav lockCameraTo [tgt, [0]];

/* create camera and stream to render surface */
cam = "camera" camCreate [0,0,0];
cam cameraEffect ["External", "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.0;

/* switch cam to NVG */
"uavrtt" setPiPEffect [0];

/* adjust cam orientation */
addMissionEventHandler ["Draw3D", {
    _dir = 
        (uav selectionPosition "laserstart") 
            vectorFromTo 
        (uav selectionPosition "commanderview");
    cam setVectorDirAndUp [
        _dir, 
        _dir vectorCrossProduct [-(_dir select 1), _dir select 0, 0]
    ];
}];

 

Share this post


Link to post
Share on other sites

Intended/known. And probably most likely won't be fixed.

Quote

One cannot mix and match cameraEffect and can either have multiple r2t cameras or a single camera for the whole screen. If one needs a background stream overlayed with r2t streams, this could be achieved by creating an object and using switchCamera to switch to it for background image, while using cameraEffect for r2t overlay (see Example 4)

https://community.bistudio.com/wiki/cameraEffect

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×