Restrict height of god mode at traders

3 posts in this topic

Create an sqf file called ExileClient_util_world_isInTraderZone.sqf with the code below, place in mission root (or wherever you have custom code)
Then call from class CfgExileCustomCode, note if you have it in a custom folder within your mission file to include\the\path
ExileClient_util_world_isInTraderZone ="ExileClient_util_world_isInTraderZone.sqf";

 * ExileClient_util_world_isInTraderZone
 * Exile Mod
 * © 2015 Exile Mod Team
 * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. 
 * To view a copy of this license, visit
private["_position", "_result"];
_position = _this;
_result = false;
	if ((((_x select 0) distance2D _position) < (_x select 1) && (getPosATL player select 2 < 30))) exitWith // 30m height restriction on trader god mode
		_result = true;
forEach ExileTraderZoneMarkerPositionsAndSize;


  • Like 10

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.