-
Similar Content
-
- 22 replies
- 4348 views
-
- 5 replies
- 6051 views
-
- 5 replies
- 3544 views
-
- 79 replies
- 18569 views
-
Simple SAFE zone, notification style and markers for Altis
By tarvin,
- Altis
- Notification message
- (and 1 more)
- 13 replies
- 6992 views
-
- Advertisement
Question
xDUKEx
Sorry if this post is in the wrong area on the forum ... I'm not sure if there would a better place to ask this question.
The Actual Script can be found here:
I've added the script and it works perfectly, however, I can't get the signs to populate around the safe zones. I believe I need to be adding in actual coordinates to the script but I am not sure of the placement. Can I stick them all within the [ ]'s and use commas to separate them ... or do I need to create a separate entry for each new location?
Here is the bit of the script I am using:
USE_SIGNS = true; // use this to build signs around the SafeZone
LOG_EnterLeave = true; // This will log to your .rpt when a player enters or leaves a SafeZone! (only works with infiSTAR.de Admintools / AntiHack)
/* You can use USE_CANBUILD or/and (works together) the custom positions below (USE_POSITIONS) [position or zone,radius] */
_infiSZ =
[
[[6325.6772,7807.7412,0],150,true],//stary
[[4063.4226,11664.19,0],150,true],//bash
[[11447.472,11364.504,0],150,true],//klen
[[1606.6443,7803.5156,0],150,true],//bandit
[[12944.227,12766.889,0],150,true],//hero
[[4361.4937,2259.9526,0],50,true],//wholesalerSouth
[[12060,12640,0],200,true]//air dealear
];
{
DZE_SafeZonePosArray set [(count DZE_SafeZonePosArray), [(_x select 0), (_x select 1)]];
} forEach _infiSZ;
if (isServer) exitWith
{
if (USE_SIGNS) then
{
{
_center = _x select 0;
_radius = _x select 1;
_lSign = _x select 2;
if (_lSign) then
{
for '_i' from 0 to 360 step (270 / _radius)*2 do
{
_location = [(_center select 0) + ((cos _i) * _radius), (_center select 1) + ((sin _i) * _radius),0];
_dir = ((_center select 0) - (_location select 0)) atan2 ((_center select 1) - (_location select 1));
_object = createVehicle ['Sign_sphere100cm_EP1', _location, [], 0, 'CAN_COLLIDE'];
_object = createVehicle ['SignM_UN_Base_EP1', _location, [], 0, 'CAN_COLLIDE'];
_object setVehicleInit 'this setObjectTexture [0,''safezone\sign.jpg''];';
_object setDir _dir;
};
};
} forEach _infiSZ;
};
};
Link to comment
Share on other sites
12 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now