Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // GR8
- ViewRestriction = {};
- ViewRestriction = {
- if (difficultyEnabled "3rdPersonView") then {
- waitUntil {cameraView == "EXTERNAL" || cameraView == "GROUP"};
- _locationTypes =
- [
- "ExileTerritory",
- "NameCityCapital",
- "NameCity",
- "NameVillage",
- "NameLocal",
- ];
- _locations = nearestLocations [player, _locationTypes, 100];
- if !((count _locations) isEqualTo 0) then
- {
- player switchCamera "INTERNAL";
- ["Whoops",["3rd Person Disabled"]] call ExileClient_gui_notification_event_addNotification;
- };
- };
- };
- /*add below to your init.sqf
- call compile preprocessFileLineNumbers "addons\viewrestriction\viewrestriction.sqf";
- ExileViewRestrictionPlayerThreadHandle = [1, viewRestriction, [], true] call ExileClient_system_thread_addtask;
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement