Jump to content
  • 0

How to add messages upon entering an area??


Genesis

Question

1 answer to this question

Recommended Posts

  • 0

You can do this by going to your mission file and going to mission.sqm and adding in a new class sensor be careful when editing these because one left out } or ; will break the server you also need to change the total of number of sensors above the first listed one and sensors start at 0 and go up so if you have 0-7 you actually have 8 sensors total. It's basically the same way it tells you that you are entering a trader city etc.

 

Examle of a sensor: 

 

class Item10
{
position[]={4980.1,0.1,8280.28};
a=50;
b=50;
activationBy="ANY";
repeating=1;
interruptable=1;
age="UNKNOWN";
name="hempfield";
expCond="(vehicle player) in thislist;";
expActiv="TitleText[""Entering Hemp Field"",""PLAIN DOWN""];    //And if you'd like to activate a script to do certain things like provide god mode or protection of a certain area you can replace this with this expActiv="hempfield = [] execVM ""protection\hempfield.sqf"";";
expDesactiv="terminate dome; titleText [""Leaving Hemp Field"", ""PLAIN DOWN"", 3];";
class Effects
{
};
 
But plenty other guides out there explaining linking a script to do certain events to a sensor. Maybe this gets you in the right direction.
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...