Hey folks,
Got a request for a bit of help if you don't mind.
I have scripted in some protected domes onto my Epoch server using the tutorial at Day.st wiki and it all works fine.
I have just tried to do the same on my Dayz server and it doesn't work. I have followed the tutorial as per the instructions. The only difference between the instructions and my files is my mission file. For some reason it is pretty much blank with one line of coding. So I assumed that if I pasted the code in and adapted it to include the loops it would work.......obviously wrong. I have pasted the code I am using below.
If anyone can suggest what else I need to do that would be brilliant. Thanks in advance.
Mission File Code
IronDome.sqf code
Got a request for a bit of help if you don't mind.
I have scripted in some protected domes onto my Epoch server using the tutorial at Day.st wiki and it all works fine.
I have just tried to do the same on my Dayz server and it doesn't work. I have followed the tutorial as per the instructions. The only difference between the instructions and my files is my mission file. For some reason it is pretty much blank with one line of coding. So I assumed that if I pasted the code in and adapted it to include the loops it would work.......obviously wrong. I have pasted the code I am using below.
If anyone can suggest what else I need to do that would be brilliant. Thanks in advance.
Mission File Code
Code:
#include "\z\addons\dayz_code\system\mission\mission.sqm"
class Markers
{
items=1;
class Item0
{
position[]={8565.21,0.001,14721.7};
name="dome";
text="Donator - IronDome Protected";
type="camp";
colorName="ColorOrange";
};
};
class Sensors
{
items=1;
class Item0
{
position[]={8565.21,0.001,14721.7};
a=200;
b=200;
activationBy="WEST";
repeating=1;
interruptable=1;
age="UNKNOWN";
name="dome";
expCond="(vehicle player) in thislist;";
expActiv="dome = [] execVM ""addons\irondome.sqf"";";
expDesactiv="terminate dome; titleText [""You've left the restricted area, have fun out there!"", ""PLAIN DOWN"", 3];";
class Effects
{
};
};
};
IronDome.sqf code
Code:
// Below, put the UID of player(s) where it says pasteUIDhere that you want to give access to the dome
if ((getPlayerUID player) in ["124026054","163019654"]) exitWith {
titleText ["Welcome home", "PLAIN DOWN", 3]; //or,\\ titleText [format ["Welcome, %1", to Harry's Base], "PLAIN DOWN"]; // welcomes you with your name
};
// What happens if unauthorized players get into the dome
titleText ["You are entering restricted area, leave or you will be hurt.", "PLAIN DOWN", 3];
sleep 10;
titleText ["I'm not kidding, you will be hurt bad. Leave this area now!", "PLAIN DOWN", 3];
sleep 10;
titleText ["Still not listening, huh?", "PLAIN DOWN", 3];
sleep 10;
titleText ["You have 5 seconds left", "PLAIN DOWN", 3];
sleep 5;
titleText ["See ya, wouldn't want to be ya.", "PLAIN DOWN", 3];
sleep 2;
player setDamage 0.2;