Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
Whyte_Out

1st Person to Only Certain Players?

Recommended Posts

Hello, I am making a complicated mission. Anyways is there a way to restrict 3rd person to only CERTAIN players? I have to captured pilots that I would like to see in 3rd Person, but would like everyone else to see only in 1st. Thanks in Advance for the help.

Share this post


Link to post
Share on other sites

This should restrain people to first person:

private ["_unit", "_vehicle"];

_unit = _this:
if (!local _unit) exitWith {};
while {alive player} do {
_vehicle = vehicle player;
if (cameraOn == _vehicle && cameraView == "External") then { 
	_vehicle switchCamera "Internal"; 
};
};

Just out of curiosity, why is that? Why not restrict first person for everybody?

Edit: this could easily be adapted to run for multiple units.

Edited by BlackMamb

Share this post


Link to post
Share on other sites

:D

Though there's always been that argument about whether 1st or third person are more realistic or whatever. I personnally don't give a damn and I'm not too keen to judge on that, but I'm curious as to why not everybody would have access to the same rights.

Share this post


Link to post
Share on other sites

Especially since you'd think it would be the other way around, the searchers would have access to 3rd and the captives to only first.

Just found a mission which does this:

while {whateverValueIsTrue} do
{
Player switchCamera "Internal";
sleep 0.1;
};

Edited by kylania

Share this post


Link to post
Share on other sites

sorry late replay, well I have to guys that are playing the pilots. While they sit and wait for the Rescue I would like them to have a look around and such, but while still restricting 3rd to everyone else. We only do our Operations in 1st Person, I will give it a try after the OP. Thanks guys for the replies. Kylania, big fan of your website hope you keep it updated.

Share this post


Link to post
Share on other sites

Hmm, can't seem to get it to work? I have it as my init.sqf file but wher do I place the names to restrict 3rd to?

Share this post


Link to post
Share on other sites
Sign in to follow this  

×