Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mission_allow_tp_veh = "everyone";
- if (difficultyEnabled "3rdPersonView") then {
- while {(mission_allow_tp_veh != "everyone")} do {
- _veh = (vehicle player);
- _inVeh = (_veh != player);
- _isTP = (cameraView == "EXTERNAL");
- _isDriving = (((player == commander _veh) || (player == driver _veh)) && (_inVeh));
- if (_isTP) then {
- if (mission_allow_tp_veh == "disabled") then {
- _veh switchCamera "INTERNAL";
- } else {
- if (!(_isDriving)) then {
- _veh switchCamera "INTERNAL";
- };
- };
- };
- sleep 0.01;
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement