Zarge °

Safezone Bullet Delete?

5 posts in this topic

Nvm i fixed it, Please delete this Post

Edited by Zarge °
1 person likes this

Share this post


Link to post
Share on other sites

Posted (edited)

Could you please share what you did? 

I have the following but it does not delete all bullets in the area. This only deletes bullets that are fired from within the zone.

#define SAFE [["safe_1", 50]] // Defines marker and distance for safe zone.
#define MESSAGE "No shooting/Grenades allowed" // Message displayed once someone fires/ throws grenade.

player addEventHandler ["Fired", {
	
	if ({(_this select 0) distance getMarkerPos (_x select 0) < _x select 1} count SAFE > 0) then {
	// Registers if player has fired or not
	
	deleteVehicle (_this select 6);
	// Deletes anything thrown or shot from player on foot.
	
	titleText [MESSAGE, "PLAIN", 3];
	// Displays message on screen.
	
	};
}];

If you can share what you did to delete the bullets within the area I would greatly appreciate that, cheers. Also this is for a personal project, not an exile server.

Edited by KillerAussie

Share this post


Link to post
Share on other sites
Advertisement
23 hours ago, KillerAussie said:

Could you please share what you did? 

I have the following but it does not delete all bullets in the area. This only deletes bullets that are fired from within the zone.


#define SAFE [["safe_1", 50]] // Defines marker and distance for safe zone.
#define MESSAGE "No shooting/Grenades allowed" // Message displayed once someone fires/ throws grenade.

player addEventHandler ["Fired", {
	
	if ({(_this select 0) distance getMarkerPos (_x select 0) < _x select 1} count SAFE > 0) then {
	// Registers if player has fired or not
	
	deleteVehicle (_this select 6);
	// Deletes anything thrown or shot from player on foot.
	
	titleText [MESSAGE, "PLAIN", 3];
	// Displays message on screen.
	
	};
}];

If you can share what you did to delete the bullets within the area I would greatly appreciate that, cheers. Also this is for a personal project, not an exile server.

The original post is a year and a half old and is about Exile safezones. Your code does not appear to be about Exile safezones?

Share this post


Link to post
Share on other sites
33 minutes ago, kuplion said:

The original post is a year and a half old and is about Exile safezones. Your code does not appear to be about Exile safezones?

 

On 06/05/2017 at 1:44 PM, KillerAussie said:

Could you please share what you did? 

I have the following but it does not delete all bullets in the area. This only deletes bullets that are fired from within the zone.


#define SAFE [["safe_1", 50]] // Defines marker and distance for safe zone.
#define MESSAGE "No shooting/Grenades allowed" // Message displayed once someone fires/ throws grenade.

player addEventHandler ["Fired", {
	
	if ({(_this select 0) distance getMarkerPos (_x select 0) < _x select 1} count SAFE > 0) then {
	// Registers if player has fired or not
	
	deleteVehicle (_this select 6);
	// Deletes anything thrown or shot from player on foot.
	
	titleText [MESSAGE, "PLAIN", 3];
	// Displays message on screen.
	
	};
}];

If you can share what you did to delete the bullets within the area I would greatly appreciate that, cheers. Also this is for a personal project, not an exile server.

I kind of said that it wasn't for exile......

Share this post


Link to post
Share on other sites
3 hours ago, KillerAussie said:

 

I kind of said that it wasn't for exile......

Yes and this is the Exile forum..

Share this post


Link to post
Share on other sites
Advertisement
Guest
This topic is now closed to further replies.

  • Recently Browsing   0 members

    No registered users viewing this page.