Jump to content
Sign in to follow this  
magnum482

How do I lock my server to first person only except for vehicles?

Recommended Posts

I want my server to disable third person for infantry but allow third person when in vehicles. How do I do this? I tried a mission script but I want to do it for whatever mission the server on. Is this possible or do I need to use a mission script? Also, if I need to use a mission script, will someone please lend me one that does what I describe above? The one I have tried doesn't work properly, as when you sprint you can see in third person.

Share this post


Link to post
Share on other sites

this can only be done with scripting, the server difficulty is either All third person or none.

There has been a request for exactly that functionality, whether or not that gets implemented remains to be seen

Share this post


Link to post
Share on other sites

Okay thanks for your answer, I would also like to know why this mission script doesn't work properly (it disables third person for infantry but this can be circumvented by sprinting and it will allow third person for as long as someone is sprinting). I just found it on some old thread so I don't really know how it works. Also I noticed that it makes GPS and the helmetcam mod not work.

Params_CameraView=1;  // could set in decription but no need for this mission
// ----------------------------------------------------------------------------
//                          MAIN ROUTINE
// ----------------------------------------------------------------------------

// no loop need, if third person view is not available anyway
if (difficultyEnabled "3rdPersonView") then
{
   switch (Params_CameraView) do
   {
       case 1://vehicles only
       {
           while {(true)} do
           {
               if (cameraView == "External") then
               {
                   if ((vehicle player) == player) then
                   {
                       player switchCamera "Internal";
                   };
               };
               sleep 0.1;
           };
       };
       case 2://infantry only
       {
           while {(true)} do
           {
               if (cameraView == "External") then
               {
                   if ((vehicle player) != player) then
                   {
                       (vehicle player) switchCamera "Internal";
                   };
               };
               sleep 0.1;
           };
       };
       case 3://disabled
       {
           while {(true)} do
           {
               if (cameraView == "External") then
               {
                   if ((vehicle player) == cameraOn) then
                   {
                       (vehicle player) switchCamera "Internal";
                   };
               };
               sleep 0.1;
           };
       };
   };
};  

---------- Post added at 15:29 ---------- Previous post was at 14:17 ----------

this can only be done with scripting, the server difficulty is either All third person or none.

There has been a request for exactly that functionality, whether or not that gets implemented remains to be seen

Also how am I supposed to change the server difficulty? I can't access the .arma3profile because it is a rented dedicated server. So how do I change the difficulty to restrict it to 1st person? The guides I am looking through are no help at all... someone please explain this to me.

Share this post


Link to post
Share on other sites

if you cannot access your *.arma3profile, then you need to contact the hosting company yourself and discuss the issue with them

As for the scripting question, that needs to be asked in the editing forums

Edited by Terox

Share this post


Link to post
Share on other sites

Also keep in mind that the script that "disables" 3rd person doesn't completely disable it - You can still get the 3rd person view for a fraction of a second and thus can still see around corners and the likes. If you're into fully fair fight PvP you'll still have to disable 3rd person completely from the server's difficulty settings.

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
Sign in to follow this  

×