NeverAgain

Infistar SZ protection

2 posts in this topic

Hi its chance to add 2 minutes protection if you leave safezone?Thanks

Share this post


Link to post
Share on other sites

Edit ExileClient_object_player_safezone_checkSafezone.sqf and put in your mission file

if !(ExilePlayerInSafezone) then 
{
	if ((getPosATL (vehicle player)) call ExileClient_util_world_isInTraderZone) then 
	{
		[] call ExileClient_object_player_event_onEnterSafezone; 
	};
	ExileClientPlayerLastSafeZoneCheckAt = diag_tickTime;
}
else 
{
	if (diag_tickTime - ExileClientPlayerLastSafeZoneCheckAt >= 120) then
	{
		if !((vehicle player) call ExileClient_util_world_isInTraderZone) then 
		{
			[] call ExileClient_object_player_event_onLeaveSafezone; 
		};
		ExileClientPlayerLastSafeZoneCheckAt = diag_tickTime;
	};
};

Then in config.cpp

class CfgExileCustomCode
{
	ExileClient_object_player_safezone_checkSafezone = "ExileClient_object_player_safezone_checkSafezone.sqf";
};

 

5 people like this

Share this post


Link to post
Share on other sites
Advertisement

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.