Register

DonkeyPunch Community Gaming

GAME ON!!! -sTanG

News:

Be careful when people that are loud get quiet.....
Administrator
*****

DirtySanchez

April 23, 2016, 06:36:56 PM
Humanitarian Posts: 932 Humanity: +1337/-420
Helped to update the script for the latest Arma 3 update 1.58.
See original thread here http://www.exilemod.com/topic/12944-releaseexile-1st-person-in-combat-mode/?do=findComment&comment=87768

Here is the corrected code. save this as viewrestriction.sqf then in the init.sqf just [] execVM "viewrestriction.sqf";
Code: [Select]
if (!isDedicated) then {

    waitUntil {!isNull (findDisplay 46)};

    if ((difficultyOption "thirdPersonView")==1) then
    {
        while {true} do {

            waitUntil {cameraView == "EXTERNAL" || cameraView == "GROUP"};

            if (ExileClientPlayerIsInCombat) then {
                player switchCamera "INTERNAL";
            };
            sleep 0.1;

         };
    };

};
« Last Edit: April 01, 2017, 12:07:57 AM by DirtySanchez »


Website: http://DonkeyPunch.INFO  |  Discord: https://discord.me/eXpoch  |  TeamSpeak: ts3.donkeypunch.info


 
1337-420