Jump to content
  • 0

Dome sensor trigger deactivation issue [FIXED]


Swash

Question

In my upgrading to Epoch 1.0.2 I found an odd issue with sensors.

When leaving dome area they do not deactivate. The script continues.

 

SAMPLE: From mission.sqf class sensor

class Item0
{
position[]={13878.3,0,13351.3};
a=150;
b=150;
activationBy="WEST";
repeating=1;
interruptable=1;
age="UNKNOWN";
name="dome1";
expCond="(vehicle player) in thislist;";
expActiv="dome = [] execVM ""scripts\dome1.sqf"";";
expDesactiv="terminate dome1; titleText [""You have left 556 territory."", ""PLAIN DOWN"", 3];";
class Effects
{
};
};

dome1sqf

if ((getPlayerUID player) in ["92736774" , "89103942" , "86414598" , "129972614" , "135770246"]) exitWith { 
titleText ["Welcome home 6'er!", "PLAIN DOWN", 3];
};
titleText ["You are entering a restricted area!", "PLAIN DOWN", 3];
sleep 10;
titleText ["WARNING: Trespassers may be shot or detained.", "PLAIN DOWN", 3];
sleep 20;
titleText ["WARNING: Trespassers may be shot or detained. Turn back now!", "PLAIN DOWN", 3];
sleep 10;
player setPosATL [15415.5,10105.9,0.001]; /// to the prison

Any info, tips, ideas, suggestions would be most appreciated!

 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Here's your problem:

expActiv="dome = [] execVM ""scripts\dome1.sqf"";";
expDesactiv="terminate dome1; titleText [""You have left 556 territory."", ""PLAIN DOWN"", 3];";
When you activate it, you're activating the dome1.sqf under the global variable dome.

When you deactivate it, you're terminating the dome1 variable, which does not exist.

If you change expDesactiv to:

expDesactiv="terminate dome; titleText [""You have left 556 territory."", ""PLAIN DOWN"", 3];"
your problems should go away.
Link to comment
Share on other sites

  • 0

LMFAO oh man and I had fixed that very thing in main server on 1.0.5.1!

Terrible!

 

And this is why you gotta track fixes between your test and main servers kids! lol

 

Thank you Kind-Sir. Good to have support even for the a-duh moments. lol

I changes it to 

expActiv="dome1 = [] execVM ""scripts\dome1.sqf"";";
expDesactiv="terminate dome1; titleText [""You have left 556 territory."", ""PLAIN DOWN"", 3];";

So it doesn't effect the other domes. But it didn't even click until you pointed it out.

 

Can I blame old age on this one??

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