Jump to content

Extended Safezone Script - Working!


Friendly

Recommended Posts

Hello everyone!

 

Not made many posts here yet, searching and just.. meditating issues seem to resolve most of them  (I also use alot of anger.. *giggles*)

 

BUT

 

When it comes to finding and understanding coordinates i'm completely stumped!

 

I've added alot of custom structures, Traders, Spawnpoints and all that just using coordinates i get from the 3deditor that is on this forum but for this script i need to change the marker and the sensorposition to match those of my desired locations on Chernarus and i just cant get it to work...

(Beyond the actual adjustments i need to make, the script works PERFECTLY)

 

This :

 

 

position[]={18461.789,24.769226,14300.033};

 

Can anyone please explain what each value represents ?

And also and most importantly, how would i go about getting my current position ingame, or the position of a desired location in that particular format ?

 

 

I have so many things to give thanks to this community for, and i am confident this will be going on the list :)

 

Best regards //

 

Tactical Anders

 

 

 

 

 

----------------------UPDATE------------------------------

 

Nevermind, for some reason i didnt think of making a small mission in the ingame editor and just copy the location of markers set down in that one....

Also, script works great with 1 exception (in my case).

 

I got that A3EAI system, those guys can drive into a safezone and kill you, same applies for the UAV guys and probably the sappers.

Link to comment
Share on other sites

  • 1 month later...

Hi Guys, Dont know if someone can throw some light on my problem. It is not directly to do with this script but it has happened on 2 scripts now that I try to add. What happens is I install the script as per instructions and then restart the server and get instantly kicked via Script restriction #21:

See below:

19.07.2015 18:01:48: MegaZ (82.44.149.191:2304) 0b1dc4a7582eb8258e82c8505c644b6a - #21 "'"]
]
] spawn BIS_fnc_typeText2;
VEMFChatMsg = nil;
};
};

[] execVM "scripts\safezone.sqf";"

 

I also had the same issue with installing the Paint script.

19.07.2015 10:44:56: MegaZ (82.44.149.191:2304) 0b1dc4a7582eb8258e82c8505c644b6a - #21 "5'"]
]
] spawn BIS_fnc_typeText2;
VEMFChatMsg = nil;
};
};
[] execVM "addons\paintshop\paintshop.sqf"
;"

 

I must be doing something wrong but can see what?

 

Here is what I have in my init.sqf

 

//DZAI -------------------------------
#include "A3EAI_Client\A3EAI_initclient.sqf";

if (hasInterface) then
{
"VEMFChatMsg" addPublicVariableEventHandler
{
  systemChat ((_this select 1) select 0);
  [
   [
    [((_this select 1) select 0),"align = 'center' size = '1' font=PuristaBold'],
    ["","<br/>"],
    [((_this select 1) select 1),"align = 'center' size = '0.5'"]
   ]
  ] spawn BIS_fnc_typeText2;
  VEMFChatMsg = nil;
};
};

//SafeZone----------------------------
[] execVM "scripts\safezone.sqf";

 

any help would be appreciated and thanks for releasing these mods

I have only have these installed AH-infastar - Zupa Hud Builder - and A3EAI

 

MegaZ

Link to comment
Share on other sites

 

example:

 

make file SafeZone.sqf

Add code inside:

	private ["_objects"];
_objects = [
 
 
    ["ProtectionZone_Invisible_F",[23710.1, 16250.1, 0.01]], //safe zone cords with 25m radius
    ["ProtectionZone_Invisible_F",[23710.1, 16225.1, 0.01]], 	
    ["ProtectionZone_Invisible_F",[23710.1, 16200.1, 0.01]],	
    ["ProtectionZone_Invisible_F",[23685.1, 16250.1, 0.01]],
    ["ProtectionZone_Invisible_F",[23685.1, 16225.1, 0.01]],
    ["ProtectionZone_Invisible_F",[23685.1, 16200.1, 0.01]],	
    ["ProtectionZone_Invisible_F",[23660.1, 16250.1, 0.01]], 
    ["ProtectionZone_Invisible_F",[23660.1, 16225.1, 0.01]], 
    ["ProtectionZone_Invisible_F",[23660.1, 16200.1, 0.01]] 
	
];
 
{
	private ["_obj"];
	_obj = createVehicle [_x select 0, [0,0,0], [], 0, "CAN_COLLIDE"];
	_obj setvectorup [0,0,1];	
	_obj setPosATL (_x select 1);
} foreach _objects;	

run it from init.sqf  

[] execVM "SafeZone.sqf";

hi, can the SafeZone radius smaller to 5m?

Link to comment
Share on other sites

  • 1 month later...
  • 3 weeks later...
  • 3 months later...
  • 2 weeks later...

Ok guys i have a problem. My English is not so good and my German Thread deleted from the Admins?

My Probleme is .

1.) Players from the Outside can Fire Inside the Safezone and Kill a Players inside the Safezone.

2.) The Sabber and the Military can damage on the Players inside the Safezone ?

Sorry for my bad English i hope anwhere can help me

Link to comment
Share on other sites

  • 11 months later...
On 28.2.2015 at 9:52 AM, SadBoy1981 said:

Here is how to make it serverside.

Download pbo file here https://www.dropbox.com/s/5m4qg1ucch116f6/Safe_Zone.pbo?dl=0

Unpack Safe_Zone.pbo and add your safe zone cords inside file init.sqf 

Pack it back to pbo and add to @epochhive\addons

Run it from MPMission init.sqf 

 

[] execVM "\q\addons\Safe_Zone\init.sqf";

 

There is no need any be filters

Is this still up to date? Link doesn't work :-/

Link to comment
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
×
×
  • Create New...