Jump to content
  • 0

dome protection help


Mr Madness

Question

ive installed this dome protection : http://dayz.st/w/Protected_Dome

 

now i am having trouble getting it to work on my server.

 

ive installed it fine as no errors come up in game but when people run into the base , nothing comes up for them , here is the info

 

this is what ive added to my sensors in my mission.sqm

class Item9


{
position[]={13700.2,2967.28,0.128};
a=80;
b=80;
rectangular=1
activationBy="ANY";
repeating=1;
interruptable=1;
age="UNKNOWN";
name="dome";
expCond="(vehicle player) in thislist;";
expActiv="dome = [] execVM ""domes/admindome.sqf"";
expDesactiv="terminate dome; titleText [""You've left the dome"", ""PLAIN DOWN"", 3];
class Effects
{

};
};

 

 

This is what is in my domes/admindome.sqf

// Below, put the UID of player(s) where it says pasteUIDhere that you want to give access to the dome


if ((getPlayerUID player) in ["38007302"]) exitWith {
titleText ["Welcome home", "PLAIN DOWN", 3];
};
// What happens if unauthorized players get into the dome
titleText ["You are entering restricted area, leave.", "PLAIN DOWN", 3];
sleep 6;
titleText ["Are you blind? GET OUT", "PLAIN DOWN", 3];
sleep 6;
titleText ["Still not listening, huh?", "PLAIN DOWN", 3];
sleep 6;
titleText ["You have 5 seconds left", "PLAIN DOWN", 3];
sleep 6;
titleText ["Good night.", "PLAIN DOWN", 3];
sleep 3;
player setDamage 1;

 

Any one able to tell me what i have done wrong?

 

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0
rectangular=1

Missing semi-colon

 

edit: actually, just noticed the sample provided in the link doesn't have a semi-colon here either...

 

edit2: 

 

expActiv="dome = [] execVM ""dome.sqf"";"; <-- you're missing this

expDesactiv="terminate dome; titleText [""You've left the dome"", ""PLAIN DOWN"", 3];"; <-- you're missing this

 

Might also want to try changing your activationBy="ANY"; --> default activationBy="WEST";

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...