Jump to content
  • 0

Mission.sqm class Sensors Question


azzdayz

Question

Ok guys I think this will be an easy one to answer, but I don't know how to go about it.

The first bit of code it the class sensor for the aircraft trader.

Spoiler

class Item5
        {
            position[]={5075,9,9733};
            TRGDEF
            name="zoneaircraft";
            expCond="(player distance zoneaircraft) < 90;";
            expActiv="[""Aircraft Trader"",false,""enter""] call player_traderCity;";
            expDesactiv="[""Aircraft Trader"",false,""leave""] call player_traderCity;";
        };    

Now the next bit of code is for radiation zone

Spoiler

class Item6
        {
            position[]={12691,0,9070.52};
            a=90;
            b=90;
            activationBy="WEST";
            repeating=1;
            interruptable=1;
            age="UNKNOWN";
            name="radzone1";
            expCond="(vehicle player) in thislist;";
            expActiv="radzone1 = [] execVM ""SCRIPTS\radzone\radzone.sqf"";";
            expDesactiv="terminate radzone1; titleText [""THE STRANGE FEELING IS GONE..."", ""PLAIN DOWN""];";
            class Effects
            {
            };
        };

Notice expActiv and expDesactiv. If I am not mistaken the "call player_traderCity" is what detects it as a trader city. If I am wrong feel free to let me know, LOL I very well could be.

The question...........

Can someone help me understand how I can make the radiation zone sensor detect as a trader city without removing what is already in expActiv and expDesactiv? Radiation zone is an example. I have multiple sensors I am wanting to do this for. I wouldn't want to obviously make a radiated spot a trader city zone ;)

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Im not 100% sure it will work.

Have you tried something like?

Spoiler

class Item6
        {
            position[]={12691,0,9070.52};
            a=90;
            b=90;
            activationBy="WEST";
            repeating=1;
            interruptable=1;
            age="UNKNOWN";
            name="radzone1";
            expCond="(vehicle player) in thislist;";
            expActiv="radzone1 = [] execVM ""SCRIPTS\radzone\radzone.sqf""; call player_traderCity;";
            expDesactiv="terminate radzone1; titleText [""THE STRANGE FEELING IS GONE..."", ""PLAIN DOWN""]; call player_traderCity;";
            class Effects
            {
            };
        };

 

 

Link to comment
Share on other sites

  • 0
11 hours ago, oldmatechoc said:

Im not 100% sure it will work.

Have you tried something like?

  Reveal hidden contents


class Item6
        {
            position[]={12691,0,9070.52};
            a=90;
            b=90;
            activationBy="WEST";
            repeating=1;
            interruptable=1;
            age="UNKNOWN";
            name="radzone1";
            expCond="(vehicle player) in thislist;";
            expActiv="radzone1 = [] execVM ""SCRIPTS\radzone\radzone.sqf""; call player_traderCity;";
            expDesactiv="terminate radzone1; titleText [""THE STRANGE FEELING IS GONE..."", ""PLAIN DOWN""]; call player_traderCity;";
            class Effects
            {
            };
        };

 

 

Well it didn't work, but you helped me see where the separation was. I had to put the whole line in, but it works like I need it to. Thanks :)

expDesactiv="terminate radzone1; titleText [""THE STRANGE FEELING IS GONE..."", ""PLAIN DOWN""]; [""Radiation Zone"",false,""leave""] call player_traderCity;"; // working Example

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