Jump to content

class Sensors


khalcifer

Recommended Posts

Why i cant see Entering PVP Area, where have error (position cherno)

class Item15
        {
            position[]={6723.59,0.00143862,2583.92};
            a=450;b=450;
            TRGDEF
            name="PVP Area";
            expCond="(player distance zonePVPArea) < 450;";
            expActiv="TitleText[""Entering PVP Area"",""PLAIN DOWN""]; canbuild = false;";
            expDesactiv="TitleText[""Exiting PVP Area"",""PLAIN DOWN""]; canbuild = true;";
        };

Link to comment
Share on other sites

sqm files uses "reverse" coords. for example if u took your coords from a sqf file: 6723.59,0.00143862,2583.92 

to put this coords in a sqm file lime mission.sqm  you need change the pos of the coords by:  6723.59,2583.92, 0.00143862

If it is not your problem and the coords are right.. take a look on your class Item 15.  If is your last sensor then take a look on the top of class sensor you should be have this:

class Sensors
    {
        items=16;

Link to comment
Share on other sites

@khalcifer

other thing that you can try is replace your sensor by this:

 class Item15
        {
            position[]={6723.59,0.00143862,2583.92};
            a=400;
            b=400;
            activationBy="WEST";
            repeating=1;
            interruptable=1;
            age="UNKNOWN";
            name="PVPArea";
            expCond="(vehicle player) in thislist;";
            expActiv="PVPArea = [] execVM ""scripts\pvparea_enter.sqf"";";
            expDesactiv="terminate PVPArea; [] execVM ""scripts\pvparea_leave.sqf"";";
            class Effects
            {
            };
        };

 

pvparea_enter.sqf (mpmissions\your instance\scripts\ )

  Reveal hidden contents

pvparea_leave.sqf (mpmissions\your instance\scripts\ )

  Reveal hidden contents

 

Link to comment
Share on other sites

btw my cords from infistar show pos 6723.59,2583.92,0.00143862

can you tell me what is 210?

class Item5
        {
            position[]={12944,210,12766};
            a=100;b=100;
            TRGDEF
            name="zonehero";
            expCond="(player distance zonehero) < 100;";
            expActiv="[""Heroes Trade Zone"",true,""enter""] call player_traderCity;";
            expDesactiv="[""Heroes Trade Zone"",true,""leave""] call player_traderCity;";
        };

Link to comment
Share on other sites

  On 6/20/2017 at 5:16 PM, khalcifer said:

thx i try it after restart, i dont have test server:(

Expand  

{12944,210,12766     the value 210 in sqm means the altitude of this sensor..  in sqf  go at last this value  12944,12766,210

 

Others things to see.. im not 100% sure but i feel that you cannot use PVP AREA,  should be PVPAREA.

and here:

   a=450;b=450;
 TRGDEF

TRGDEF is defined at top of class sensors..

class Sensors
	{
		items=¿?¿?;
#define TRGDEF a=100;b=100;activationBy="ANY";repeating=1;interruptable=1;age="UNKNOWN";class Effects{};

then youre overwriting it to set your own ratio. a=450;b=450;

but below you call again TRGDEF.. so im not sure if this works.

should be

class Item15
        {
            position[]={6723.59,0.00143862,2583.92};      
            TRGDEF
            a=450;b=450;
            name="PVPArea";

if u can paste your whole mission.sqm whould be much more easier help you.   use pastebin.com to paste it

Link to comment
Share on other sites

  On 6/20/2017 at 5:25 PM, juandayz said:

{12944,210,12766     the value 210 in sqm means the altitude of this sensor..  in sqf  go at last this value  12944,12766,210

 

Others things to see.. im not 100% sure but i feel that you cannot use PVP AREA,  should be PVPAREA.

and here:

   a=450;b=450;
 TRGDEF

TRGDEF is defined at top of class sensors..

class Sensors
	{
		items=¿?¿?;
#define TRGDEF a=100;b=100;activationBy="ANY";repeating=1;interruptable=1;age="UNKNOWN";class Effects{};

then youre overwriting it to set your own ratio. a=450;b=450;

but below you call again TRGDEF.. so im not sure if this works.

should be

class Item15
        {
            position[]={6723.59,0.00143862,2583.92};      
            TRGDEF
            a=450;b=450;
            name="PVPArea";

if u can paste your whole mission.sqm whould be much more easier help you.   use pastebin.com to paste it

Expand  

still not working:(

here is my class Sensors

  Reveal hidden contents

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Discord

×
×
  • Create New...