Jump to content

Setting up Safezones with Markers And Triggers


Leigham

Recommended Posts

Right, weve got so far as to making a base one in editor and it works but trying to change the positions and im getting :

 

Error context position[]={13326.5,0,14515.2};

 

any ideas on whats up with it, once its done i will be releasing a Cherno, and Altis Files :D

 

# EDIT 

we have a start, 

the map markers are now showing up, but the triggers(sensors) are not working ? any ideas ]

Link to comment
Share on other sites

EDIT#

we have a start, 

the map markers are now showing up, but the triggers(sensors) are not working ? any ideas ]

 

     class Sensors   
    {             
        items= 2;
        class Item0
        {
position[]={13326.511,0.111,14515.211};
a=150;
b=150;
activationBy="ANY";
repeating=1;
interruptable=1;
age="UNKNOWN";
type="PRESENT";
name="safezonetentry1";
expActiv="player allowdamage false;";
class Effects
{
sound="Alarm";
voice="suicide2";
track="LeadTrack03_F";
titleType="TEXT";
title="You are now in a safezone";
};
};
class Item1
{
position[]={13326.511,0.111,14515.211};
a=150;
b=150;
activationBy="ANY";
repeating=1;
interruptable=1;
type="NOT PRESENT";
age="UNKNOWN";
name="safezoneexit1";
expActiv="player allowdamage true;";
class Effects
{
sound="Alarm"
titleType="TEXT";
title="GodMode Disabled";
};
};
};

Link to comment
Share on other sites

Greetings, have the same problem on my server. Noticed today that the sensor worked (marker and text) but the godmode didnt work for players, only admins.

 

example for one trader

class Sensors
    {
        items=1;
        class Item0 // Center Trader
        {
            position[]={13330.902,2.288,14528.784};
            a=350;
            b=350;
            angle=-88.355904;
            activationBy="ANY";
            repeating=1;
            interruptable=1;
            type="SWITCH";
            age="UNKNOWN";
            expCond="this && (local player) && (vehicle player in thisList)";
            expActiv="hint parseText format[""<t align=center' size='2.0'>Coast Trader!</t><br/><br/>Happy Trading!"]; player allowDamage false;";
            expDesactiv="hint parseText format[""<t align=center' size='2.0'>Warning!</t><br/><br/>Beware of Bandits!<br/>"]; player allowDamage true;";
            class Effects
            {
            };
        };

};

Link to comment
Share on other sites

I m looking forward to use your script, Leigham :)

In general we would also be interested in creating safe zones around the 3 spawnpoints.

Are the sensors working for you now?

And can a safe zone in a circle of 600 metres around the trader be solved by sensors?

I´d imagine that  sensors will get activated when you walk over them.

But what if you want to protect an area like our circle?

Any suggestions?

greetz

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
  • Advertisement
  • Discord

×
×
  • Create New...