Jump to content
_leech

Forced 3rd person (help)

Recommended Posts

Is there any way of forcing 3rd person while in a vehicle / sitting on a chair / etc. ?

 

Thanks in advance

Share this post


Link to post
Share on other sites

Kid, do this code just go in the init? 

Share this post


Link to post
Share on other sites
47 minutes ago, killzone_kid said:

vehicle player switchCamera "EXTERNAL";



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

Hm this seems to keep the camera in a fixed position unable to look around or control the player and still able to go into 1st person.

 

How do i force 3rd person when e.g. entering a vehicle/sitting on a chair and keep it 3rd person (unable to go into 1st and still able to look around) until exiting that vehicle/chair?

 

Anyone know?

Share this post


Link to post
Share on other sites
4 minutes ago, neetch said:

this seems to keep the camera in a fixed position unable to look around


Whatever this is, it is unrelated to switchCamera command. As for preventing person from manually switching back, there is no command for that. It can be done with scripted workaround, but usually all those workarounds are ugly and inefficient

Share this post


Link to post
Share on other sites

@killzone_kid Oh ok. Thanks for the help and info. I have a camera view mod enabled which might be causing the fixed thing.

 

If anyone know of any existing scripts (buggy or not) that prevents going 1st person, feel free to post them here.

Share this post


Link to post
Share on other sites
12 minutes ago, das attorney said:

Use the search function or google it - this has been asked loads of times

Already did and forums too. I did quickly look at the "3rdView Restrictions" script but thought it was eliminating 3rd person since it had a red cross over it on the armaholic page. Anyways i'm gonna try it out now.

Share this post


Link to post
Share on other sites
//////////////////////////////////////////////////////////
//                =ATM= Third person view in driver	    //
//         		 =ATM=Pokertour        		      	    //
//				version : 0.1					        //
//				date : 10/01/2014						//
//              visit us : atmarma.fr                   //
//////////////////////////////////////////////////////////

//on each vehicle you want 3rd person for driver put this in the init : nul = [this] execVM "ATM_script\3rd_person\3rdperson.sqf";

if (isDedicated) exitWith {};

_vehi = _this select 0;
thirdperson_allowed = false;

While {not thirdperson_allowed} do {

	waitUntil {(alive _vehi) && (player == driver _vehi)};

	player remoteControl driver _vehi;
	_vehi switchCamera "EXTERNAL";

	if ((player != driver _vehi)) Then {
		objNull remoteControl driver _vehi;
		player switchCamera "internal";
	};
};

link

 

So this one works beautifully for vehicles. Any idea on how to use something like this for chairs (with acex sitting) or taru pods?

Share this post


Link to post
Share on other sites

With CBA, a half secound delay


[
    {
        if (cameraView == "External") then {player switchCamera "internal"};
    },
    0.5,
    [] //
] call CBA_fnc_addPerFrameHandler;

Share this post


Link to post
Share on other sites
12 hours ago, drunken officer said:

With CBA, a half secound delay

 


[
    {
        if (cameraView == "External") then {player switchCamera "internal"};
    },
    0.5,
    [] //
] call CBA_fnc_addPerFrameHandler;

 

This seems to work the same as the "3rdView Restrictions" script and it runs nowhere as smooth as ATM's script. With this, you can still see the screen getting black for a small period when hitting enter no matter how short delay you choose. Also, you are affected by this script all of the time, so you are constantly in 3rd/1st person mode (every time you walk forward the camera switches to 3rd/1st person).

 

Does anyone have any idea on how to use ATM's script for taru pods or acex chair sitting?

 

Thx

Share this post


Link to post
Share on other sites

Do you really need a controll per EACH Frame? WaitUntil check the condition eachframe...

 

In my example, you have only to chance

If (cameraVieW == "External" && !(vehicle player) != player then {...}

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

×