Jump to content
ribera1945e

[help]UAV Livefeed with KK's ArmA Scripting Tutorials

Recommended Posts

if (!isServer) exitWith {};

params [["_display", objNull], ["_feeder", objNull]];

_display setObjectTextureGlobal [0, "#(argb,512,512,1)r2t(uavrtt,1)"];

cam = "camera" camCreate [0,0,0];
cam cameraEffect ["Internal", "Back", "uavrtt"];

cam attachTo [_feeder, [0,0,0], "PiP0_pos"];
cam camSetFov 0.7;
"uavrtt" setPiPEffect [0];

addMissionEventHandler ["Draw3D", {
    _dir = 
        (_feeder selectionPosition "PiP0_pos") 
            vectorFromTo 
        (_feeder selectionPosition "PiP0_dir");
    cam setVectorDirAndUp [
        _dir, 
        _dir vectorCrossProduct [-(_dir select 1), _dir select 0, 0]
    ];
}];

http://killzonekid.com/arma-scripting-tutorials-uav-r2t-and-pip/

I read KK's blog and made a live feed script, but the turret vector is not reflected with the following error:

 

'..eder selectionPosition "PiP0_dir");

cam |#|setVectorDirAndUp [

_dir,

_dir vectorCr...'

Error 0 elements provided, 3 expected

The UAV thinks there is a problem with the code as it gives the same error when using a vanilla one.

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

×