Dayz Epoch Base Shield "Trigger" System

Hi Guys,

i tried to add a little Base Shield to my Server Dayz Epoch. The Base Shield should cover our Admin Base on Devils Castle - 100x100 meters.
i created a sqf wich contains following Code.

Code:
if ((getPlayerUID player) in ["xxxxxxx","xxxxxxxx"]) then {
titleText ["Hello Admin.  Welcome back.", "PLAIN DOWN", 3];
} else {
titleText ["You are entering a restricted zone, please turn back now or face certain death...", "PLAIN DOWN", 3];
sleep 10;
titleText ["You have 1 minute to turn back...", "PLAIN DOWN", 3];
sleep 10;
titleText ["You have less than 45 seconds to leave..", "PLAIN DOWN", 3];
sleep 10;
titleText ["You have less than 25 seconds to leave.. We aren't kidding!", "PLAIN DOWN", 3];
removeAllWeapons player;
sleep 10;
titleText ["You have less than 10 seconds to leave (you're about to die!)...", "PLAIN DOWN", 3];
sleep 10;
titleText ["You were warned..!", "PLAIN DOWN", 3];
sleep 5;
player setDamage 1;
};

and here is my PART from my mission.sqm:

Code:
};
    class Sensors
    {
        items=4;
        class Item0
        {
            position[]={6325.6772,304.99033,7807.7412};
            a=100;
            b=100;
            activationBy="WEST";
            repeating=1;
            interruptable=1;
            age="UNKNOWN";
            name="zonestary";
            expCond="(player distance zonestary) < 100;";
            expActiv="TitleText[""Now entering trader city Stary"",""PLAIN DOWN""]; canbuild = false;";
            expDesactiv="TitleText[""Now leaving trader city Stary"",""PLAIN DOWN""]; canbuild = true;";
            class Effects
            {
                titleType="TEXT";
                titleEffect="PLAIN DOWN";
                title="You are entering a restricted zone.";
            };
        };
   
        class Item1
        {
            position[]={4063.4226,365.00577,11664.19};
            a=100;
            b=100;
            activationBy="WEST";
            repeating=1;
            interruptable=1;
            age="UNKNOWN";
            name="zonebash";
            expCond="(player distance zonebash) < 100;";
            expActiv="TitleText[""Now entering trader city Bash"",""PLAIN DOWN""]; canbuild = false;";
            expDesactiv="TitleText[""Now leaving trader city Bash"",""PLAIN DOWN""]; canbuild = true;";
            class Effects
            {
            };
        };
        class Item2
        {
            position[]={11447.472,317.26886,11364.504};
            a=100;
            b=100;
            activationBy="WEST";
            repeating=1;
            interruptable=1;
            age="UNKNOWN";
            name="zoneklen";
            expCond="(player distance zoneklen) < 100;";
            expActiv="TitleText[""Now entering trader city Klen"",""PLAIN DOWN""]; canbuild = false;";
            expDesactiv="TitleText[""Now leaving trader city Klen"",""PLAIN DOWN""]; canbuild = true;";
            class Effects
            {
            };
        };
        class Item3
        {
            position[]={6881.4106, 11440.228};
            a=100;
            b=100;
            activationBy="WEST";
            repeating=1;
            interruptable=1;
            age="UNKNOWN";
            name="AdminBase";
            expCond="(vehicle player) in thislist;";
            expActiv="adminbase = [] execVM ""Scripts\adminbase.sqf"";";
            expDesactiv="terminate adminbase; titleText [""You have left the Admin Base!"", ""PLAIN DOWN"", 3];";
            class Effects
            {
                titleType="TEXT";
                titleEffect="PLAIN DOWN";
                title="You are entering a restricted zone.";
           
            };
        };
    };
};

The responsible Code for my Baseshield is at the bottom of the Code..... But anyway its not working......

Can somebody point me to the right direction ?

Thanks alot Guys.....
 
Code:
name="AdminBase";

Code:
expActiv="adminbase = [] execVM ""Scripts\adminbase.sqf"";";
expDesactiv="terminate adminbase; titleText [""You have left the Admin Base!"", ""PLAIN DOWN"", 3];";

"Adminbase" and "adminbase" - I think it's case-sensitive.
 
Hi Fr1nk,

i will give it a try, also think there is a misstypo in
Code:
expActiv="adminbase = [] execVM ""Scripts\adminbase.sqf"";";

my Folder is called "scripts" not "Scripts" was a little late :)

i will post feedback here!

Thanks !
 
Well , Even tho that post is old, It sure worked for my Dayz Epoch Napf Server ,No one dares to go near my island :)
THANKS YOU!
 
Back
Top