Jump to content
  • 0

Setting Trigger that Changes Humanity Help!


ZeroK00L

Question

Hey guys,

 

 Looking for a way to set an area trigger where anyone that walks into that area immediately becomes a bandit or becomes hostile to the military AI within that area. If anyone knows how to do this and can point me in the right direction I would appreciate it! Thanks!

 

 

Zero

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Player setVariable ["humanity",yourvaluehere,true];

Then put a sensor and run the script that changes the humanity when activated ;)

So, something like this....

 

 

class Item1

        {

            position[]={13425.835,5.1528473,2792.9233};

            a=200;

            b=200;

            activationBy="WEST";

            interruptable=1;

            age="UNKNOWN";

            name="militaryhq";

            expCond="(player distance militaryhq) < 200;";

            expActiv="TitleText[""You Have Tripped A Silent Alarm!"",""PLAIN DOWN""]; execVM "custom\humanity.sqf";";

            expDesactiv="TitleText[""You are now an enemy of the state!"",""PLAIN DOWN""];";

            class Effects

            {

 

and then my humanity.sqf....

 

 

Player setVariable ["humanity",-30000,true];

 

Thanks so much for your help Peipo!!!

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
  • Advertisement
  • Discord

×
×
  • Create New...