Jump to content
  • 0

Adding sensors to mission.sqm


exploadead

Question

Please help! I want to add some new sensors to my mission.sqm, but no matter what i do, only first 3 sensors are working... all following sensors after those three are refusing to work! Why?

class Sensors:

class Sensors
	{
		items = 7;
		class Item0
        {
            position[]={27042,0,24928};
            a=100;
            b=100;
			id=200;
            activationBy="ANY";
            repeating=1;
            interruptable=1;
            age="UNKNOWN";
            name="SuperB1";
            expCond="((vehicle player) in thislist;";
            expActiv="SuperB1 = [] execVM ""superb1.sqf"";";
            expDesactiv="terminate SuperB1; TitleText [""ВЫ ПОКИНУЛИ ТЕРРИТОРИЮ БАЗЫ."", ""PLAIN DOWN"", 3];";
            class Effects
            {
                titleType="TEXT";
                titleEffect="PLAIN DOWN";
                title="База Группы 1...";
            };
        };
		class Item1
        {
            position[]={21990.5,0,21041.8};
            a=100;
            b=100;
			id=201;
            activationBy="ANY";
            repeating=1;
            interruptable=1;
            age="UNKNOWN";
            name="SuperB2";
            expCond="((vehicle player) in thislist;";
            expActiv="SuperB2 = [] execVM ""superb2.sqf"";";
            expDesactiv="terminate SuperB2; TitleText [""ВЫ ПОКИНУЛИ ТЕРРИТОРИЮ БАЗЫ."", ""PLAIN DOWN"", 3];";
            class Effects
            {
                titleType="TEXT";
                titleEffect="PLAIN DOWN";
                title="База Группы 4...";
            };
        };
		class Item2
		{
			position[]={13330.902,2.2880001,14528.784};
			a=150;
			b=150;
			id=202;
			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='1.8' color='#15CF04'> ЗЕЛЕНАЯ ЗОНА::</t><br/><t size='1.2' color='#ffffff'>------------------------<br/>Любое насилие запрещено! <br/> За убийство в пределах зоны <br/> последует немедленное наказание <br/>""];player allowDamage false;";
			expDesactiv="hint parseText format[""<t align='center' size='1.8' color='#ff0000'> ВНИМАНИЕ !</t><br/><t size='1.2' color='#ffffff'  >------------------------<br/>Вы покинули торговую зону <br/> Ваша жизнь находится в потенциальной опасности.  <br/>""]; player allowDamage true;";

		};
		class Item3
		{
			position[]={6195.0264,88.872307,16855.523};
			a=150;
			b=150;
			id=203;
			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='1.8' color='#15CF04'>ЗЕЛЕНАЯ ЗОНА::</t><br/><t size='1.2' color='#ffffff'>------------------------<br/>Любое насилие запрещено! <br/> За убийство в пределах зоны <br/> последует немедленное наказание <br/>""];player allowDamage false;";
			expDesactiv="hint parseText format[""<t align='center' size='1.8' color='#ff0000'> ВНИМАНИЕ !</t><br/><t size='1.2' color='#ffffff'>------------------------<br/>Вы покинули торговую зону <br/> Ваша жизнь находится в потенциальной опасности.  <br/>""]; player allowDamage true;";

		};
		class Item4
		{
			position[]={18474.422,24.701738,14291.331};
			a=150;
			b=150;
			id=204;
			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='1.8' color='#15CF04'>ЗЕЛЕНАЯ ЗОНА::</t><br/><t size='1.2' color='#ffffff'>------------------------<br/>Любое насилие запрещено! <br/> За убийство в пределах зоны <br/> последует немедленное наказание <br/>""];player allowDamage false;";
			expDesactiv="hint parseText format[""<t align='center' size='1.8' color='#ff0000'> ВНИМАНИЕ !</t><br/><t size='1.2' color='#ffffff'>------------------------<br/>Вы покинули торговую зону <br/> Ваша жизнь находится в потенциальной опасности.  <br/>""]; player allowDamage true;";

		};
		

	};

I have 2 donate bases in first two sensors, and after them goes 3 green zones... If i place greenzones first they all will work fine (but not donate bases), if i place bases first then them and only one greenzone will work... I just dont get it, why?

Edited by exploadead
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Discord

×
×
  • Create New...