Advertisement
Guest User

Untitled

a guest
Jan 29th, 2015
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. mission_allow_tp_veh = "everyone";
  2.  
  3. if (difficultyEnabled "3rdPersonView") then {
  4. while {(mission_allow_tp_veh != "everyone")} do {
  5. _veh = (vehicle player);
  6. _inVeh = (_veh != player);
  7. _isTP = (cameraView == "EXTERNAL");
  8. _isDriving = (((player == commander _veh) || (player == driver _veh)) && (_inVeh));
  9.  
  10. if (_isTP) then {
  11. if (mission_allow_tp_veh == "disabled") then {
  12. _veh switchCamera "INTERNAL";
  13. } else {
  14. if (!(_isDriving)) then {
  15. _veh switchCamera "INTERNAL";
  16. };
  17. };
  18. };
  19. sleep 0.01;
  20. };
  21. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement