Jump to content
darkxess

Disabling the "Crosshair" and "Third Person view"

Recommended Posts

How to disable the "crosshair" and "third person view" with script? I know it's possible in the options but this is for a hardcore mission so....

 

If its possible, how could I actually add it to the server so that its optional within the missions options or mission lobby before entering the mission?

Thanks :)

Share this post


Link to post
Share on other sites

the crosshair? 

 

IIRC that is not do-able without an addon.

 

regarding third person:

 

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

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

 

^ stick those in a loop such as:

 

https://community.bistudio.com/wiki/Arma_3:_Event_Handlers/addMissionEventHandler#EachFrame

Share this post


Link to post
Share on other sites

 

Yea the crosshair or is it called reticle? the thing you target with lol... isn't there a script method to disable it by default on server side?

 

Thanks for the rest :)

Share this post


Link to post
Share on other sites

I've been using this for a while to limit 3rd Person view.

 

Put this in your init.sqf

 

    while {(true)} do
        {
            if (alive player && cameraView == "External")
                then
                {
                if ((vehicle player) isEqualTo player)
                    then
                    {
                        player switchCamera "Internal";
                    }
                    else
                    {
                        player switchCamera "External";
                    };
                };
                sleep 0.01;
        };

 

  • Like 1

Share this post


Link to post
Share on other sites
1 hour ago, Beerkan said:

I've been using this for a while to limit 3rd Person view.

 

Put this in your init.sqf

 


    while {(true)} do
        {
            if (alive player && cameraView == "External")
                then
                {
                if ((vehicle player) isEqualTo player)
                    then
                    {
                        player switchCamera "Internal";
                    }
                    else
                    {
                        player switchCamera "External";
                    };
                };
                sleep 0.01;
        };

 

the

else
{
player switchCamera "External";
};

is redundant.

Share this post


Link to post
Share on other sites
On 03/02/2017 at 10:14 PM, theend3r said:

the


else
{
player switchCamera "External";
};

is redundant.

used to Limit 3rd person view while on foot, but allow switching to 3rd person when in vehicle.

Share this post


Link to post
Share on other sites
9 hours ago, Beerkan said:

used to Limit 3rd person view while on foot, but allow switching to 3rd person when in vehicle.

No, it is redundant. You're telling the script to switch to external if it's external.

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

×