Advertisement
Darth_Rogue

Exile View Restriction

Nov 9th, 2015
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. // GR8
  2. ViewRestriction = {};
  3. ViewRestriction = {
  4. if (difficultyEnabled "3rdPersonView") then {
  5. waitUntil {cameraView == "EXTERNAL" || cameraView == "GROUP"};
  6. _locationTypes =
  7. [
  8. "ExileTerritory",
  9. "NameCityCapital",
  10. "NameCity",
  11. "NameVillage",
  12. "NameLocal",
  13. ];
  14. _locations = nearestLocations [player, _locationTypes, 100];
  15. if !((count _locations) isEqualTo 0) then
  16. {
  17. player switchCamera "INTERNAL";
  18. ["Whoops",["3rd Person Disabled"]] call ExileClient_gui_notification_event_addNotification;
  19. };
  20.  
  21. };
  22. };
  23.  
  24.  
  25. /*add below to your init.sqf
  26.  
  27.  
  28. call compile preprocessFileLineNumbers "addons\viewrestriction\viewrestriction.sqf";
  29. ExileViewRestrictionPlayerThreadHandle = [1, viewRestriction, [], true] call ExileClient_system_thread_addtask;
  30. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement