SheepishShaun

Custom PVE Zone

12 posts in this topic

Hey guys, I need some help.  :)

I was wondering, how do I go about creating a PVE only zone on my map?

I made a zone in the mission.sqm using a trader safezone as a template and it worked great. It wasn't until players tried building and it said "You cannot build in a safezone", I remembered that using the safezone template was not the best idea.

I'm thinking I will need to make a custom trigger, then link it to a custom file (ExileClient_object_player_event_onEnterPVEzone.sqf), then just put the code I need in there.

Would that work?

How do I make a custom trigger?

And where would I need to place the custom " ExileClient_object_player_event_onEnterPVEzone.sqf " File?

Or am I going about it the wrong way?

Thanks Everyone!  :D

Share this post


Link to post
Share on other sites

here you go man

 

        class Item31
        {
            position[] = {23685.1,5.31532,16269.8};
            name = "RadiationZone";
            text = "Radiation Zone";
            markerType = "ELLIPSE";
            type = "Empty";
            colorName = "ColorRed";
            fillName = "Grid";
            a = 300;
            b = 300;
            drawBorder = 1;
        };

Share this post


Link to post
Share on other sites
Advertisement

Thats why I was wanting to make my own trigger:

	class Sensors
	{
		items = 1;
		class Item0
		{
			position[] = {20603,0,7125.93};
			a = 2700;
			b = 2700;
			activationBy = "ANY";
			repeating = 1;
			interruptable = 1;
			age = "UNKNOWN";
			name = "ExilePVE";
			expCond = "(vehicle player) in thisList";
			expActiv = "call ExileClient_object_player_event_onEnterPVEzone";
			expDesactiv = "call ExileClient_object_player_event_onLeavePVEzone";
			class Effects{};
		};
	};

link it to a custom ExileClient_object_player_event_onEnterPVEzone.sqf:

private[];
if (ExilePlayerInSafezone) exitWith { false };
ExilePlayerInSafezone = true;
if (alive player) then
{
	player allowDamage false;
	player removeAllEventHandlers "HandleDamage";
};

ExileClientSafeZoneESPEventHandler = addMissionEventHandler ["Draw3D", {20 call ExileClient_gui_safezone_safeESP}];
["SafezoneEnter"] call ExileClient_gui_notification_event_addNotification;
ExileClientSafeZoneUpdateThreadHandle = [1, ExileClient_object_player_thread_safeZone, [], true] call ExileClient_system_thread_addtask;
true

Then I can have a CUSTOM safezone players can build in, can't get shot in, and you get notified when you enter it.

If I drop my radius size, players can still get killed in the PVE zone marker.

Or is this not possible?

Edited by SheepishShaun
More info

Share this post


Link to post
Share on other sites
1 hour ago, SheepishShaun said:

Thats why I was wanting to make my own trigger:


	class Sensors
	{
		items = 1;
		class Item0
		{
			position[] = {20603,0,7125.93};
			a = 2700;
			b = 2700;
			activationBy = "ANY";
			repeating = 1;
			interruptable = 1;
			age = "UNKNOWN";
			name = "ExilePVE";
			expCond = "(vehicle player) in thisList";
			expActiv = "call ExileClient_object_player_event_onEnterPVEzone";
			expDesactiv = "call ExileClient_object_player_event_onLeavePVEzone";
			class Effects{};
		};
	};

link it to a custom ExileClient_object_player_event_onEnterPVEzone.sqf:


private[];
if (ExilePlayerInSafezone) exitWith { false };
ExilePlayerInSafezone = true;
if (alive player) then
{
	player allowDamage false;
	player removeAllEventHandlers "HandleDamage";
};

ExileClientSafeZoneESPEventHandler = addMissionEventHandler ["Draw3D", {20 call ExileClient_gui_safezone_safeESP}];
["SafezoneEnter"] call ExileClient_gui_notification_event_addNotification;
ExileClientSafeZoneUpdateThreadHandle = [1, ExileClient_object_player_thread_safeZone, [], true] call ExileClient_system_thread_addtask;
true

Then I can have a CUSTOM safezone players can build in, can't get shot in, and you get notified when you enter it.

If I drop my radius size, players can still get killed in the PVE zone marker.

Or is this not possible?

i really dont believe this will work as a safe zone is a safe zone they are there for that reason.

besides if you got a pvp server with pve zones no one shouldnt be in there killing anyway, and thats why you have admins 

well goodluck setting things up ,its not that hard too do as i gave you the things you need.

P.S i dont think the triggers work 

Share this post


Link to post
Share on other sites

Not sure what that's all about, the only forums you're not able to post in you're not able to see... everything else you can post in.

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.