Jump to content
M1ke_SK

disable 3rd person view when in UAV gunner

Recommended Posts

I have UAV locked on position. When player connect to UAV and go to gunner seat of "_uav", I want to disable 3rd person view.

 

Here is what I got so far:

[_uav] spawn
{
    private _uav;
    params ["_uav"];

    while {true} do 
    {
        waitUntil{ sleep 5; (cameraOn == player) && (cameraView == "External") && (gunner _uav == player) }; 
        player switchCamera "Internal";
    };
};

Share this post


Link to post
Share on other sites

_nil = [] spawn
{
    _uav = uav01;

    while {true} do 
    {	
        if ( (cameraView == "External") && ((UAVControl _uav) select 1) == "gunner") then {
            driver _uav switchCamera "Gunner";
            player remoteControl gunner _uav;
        };
        sleep 0.1;
    };
};
Tried it right now, works.

/Edit: Funny. Tried it again now and it suddenly doesn't anymore.

/Edit2: This should really work now.

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

×