Sign in to follow this  
disto1978

1st person only for helicopters / air vehicles

6 posts in this topic

Hello guys,

I´m looking for an solution to force 1st person view in helicopters / air vehicles only. I just found some scripts to restrict 3rd person in combat, but how to restrict it only in helicopters / air vehicles?

Can someone help me out pls?

Share this post


Link to post
Share on other sites

So how much effort have you expended in finding this?  By using Google, I found a script that will do this - in less than 15 seconds.

You asked for 'help'.  Here it is; search for: arma script 1st person view in helicopters

You will have to make one minor change to the script I found, which is the opposite of what you seek.  Besides that, it is what you're looking for.

;)

Share this post


Link to post
Share on other sites
Advertisement
Quote

If you found my post helpful in any manner, please click the 'Like Me' button, you can find it at the bottom of the post!

Helpful? ...not really, sorry ;)

Yes I know google and I used it already. There are a lot of hits to this topic, but most of them are outdated or not recommend for performance reasons.

 

I found a working solution by combine some of the scripts I found...

if (!isDedicated) then 
{
    waitUntil {!isNull (findDisplay 46)};

    if ((difficultyOption "thirdPersonView")==1) then
    {
		if ((vehicle player) isEqualTo player) then 
		{
			while {true} do 
			{
				if (((vehicle player)isKindOf "LandVehicle") && 
				(speed (vehicle player)) >= 10) 
					then{
							player switchCamera "Internal";
						};
				sleep 0.1;
				
				if (((vehicle player)isKindOf "Helicopter") && 
				(getPosVisual (vehicle player) select 2) > 10)
					then{
							player switchCamera "Internal";
						};
				sleep 0.1;
								
				if (((vehicle player)isKindOf "Plane") && 
				(speed (vehicle player)) >= 60) 
					then{
							player switchCamera "Internal";
						};
				sleep 0.1;
				
			};
		};
    };
};

 

Working fine so far. It would be nice if the player get a warning if he enter a helicopter that 1st person is forced in flight, someone can help me to add a code for the warning message?

Share this post


Link to post
Share on other sites

The script you listed is the one of the two I found.  As I stated, all you have to do is reverse the cameras and your problem is solved.  ;)  With no help from any of us.  YOU had the solution all along, thus why I asked how much effort did you put into this.

You also never stated that you found a WORKING script already.

 

There is also one script which checks on frames.  All of these (to my knowledge) will be a loop of some sort.  You have the script run on the client and then THEY are burdened with the 'performance' hit, which is very small.

 

As far as warning, why not when they get in?  Using the standard 'hint' command right after the 'player switchcamera' command would do it.  Quick and simple.

 

if (((vehicle player)isKindOf "Helicopter") &&
(getPosVisual (vehicle player) select 2) > 10)
then{
player switchCamera "Internal";
hint "3rd Person Camera Disabled!";

They do not like 1st person view?  They can get out.

 

Or put it in the rules, if you have a rules section somewhere.

:)

Share this post


Link to post
Share on other sites
Quote

if (((vehicle player)isKindOf "Helicopter") &&
(getPosVisual (vehicle player) select 2) > 10)
then{
player switchCamera "Internal";
hint "3rd Person Camera Disabled!";

I tried this, but no effect. Is it possible infistar is blocking this?

Share this post


Link to post
Share on other sites

It is possible, I am not an 'infiSTAR' professional.  My 'basic understanding', is any script/display/variable might 'kick off' IS.  As the hint does produce a display, it might very well be triggering it.  How to fix?  I have no clue.  I suspect it will have to do something with an IDD and being added to IS's config file.

Sorry.

:(

 

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.