AcornnutZ

Area and map (blackmarket arms dealer) notifications when enemy is contesting/unoccupied/occupied

28 posts in this topic

I'm trying to implement something into my server that I'm 99% sure doesn't exist in the exile world. It's exactly what wasteland servers use for their gun store notifications if anyone is familiar.... A map icon for 3 separate not safe arms dealers that are not protected... when an enemy is inside the zone the map shows it.  If your in this zone and an enemy comes into the same zone you are notified. if the zone is empty it shows it...  I really would like this in my server, does anyone have an idea how i might be able to implement this?   Thanks in advance to any and all help.

Share this post


Link to post
Share on other sites
Advertisement

Great suggestion, thanks!! Would need to have 3 different instances running but wasteland stores do behave similar to that cap point mission ...

Edited by AcornnutZ

Share this post


Link to post
Share on other sites

I don't know how useful this would be - because everyone is the same faction I think people would be tempted to avoid the area if people know it's going to basically announce that they're there

 

Here is what you should do - I'd suggest attempting it yourself, at least the marker/trigger creation bit at least

When the server runs have it create a marker that is let's say green and is a 75by75m ellipse on the area

Create a trigger on the same location and add an if statement

IF player is in that area delete the marker and create a new one that is red and the same size and in the same place, then if there's no player in the area, delete the red marker and create the green one again

  • Like 1

Share this post


Link to post
Share on other sites

Here - this creates a marker and trigger on the same location and changes the colour if a player enters the area. You're welcome - but this was only tested in editor

_trigger = createTrigger ["EmptyDetector", getPos player];
_trigger setTriggerArea [100,100,0, false];
_trigger setTriggerActivation ["ANY", "PRESENT", true];
 
_marker = createMarker ["triggerMarker", getPos player];
_marker setMarkerSize [100,100];
_marker setMarkerColor "ColorRed";
_marker setMarkerShape "ELLIPSE";
 
while {true} do {
_detect = player inArea _trigger;
 
if(_detect isEqualTo true) then {
_marker setMarkerColor "ColorBlue";
};
 
if(_detect isEqualTo false) then {
_marker setMarkerColor "ColorRed";
 
};
sleep 1;
};

Edited by Steelius
  • Like 2

Share this post


Link to post
Share on other sites
On 01/08/2016 at 9:46 PM, Steelius said:

Here - this creates a marker and trigger on the same location and changes the colour if a player enters the area. You're welcome - but this was only tested in editor

_trigger = createTrigger ["EmptyDetector", getPos player];
_trigger setTriggerArea [100,100,0, false];
_trigger setTriggerActivation ["ANY", "PRESENT", true];
 
_marker = createMarker ["triggerMarker", getPos player];
_marker setMarkerSize [100,100];
_marker setMarkerColor "ColorRed";
_marker setMarkerShape "ELLIPSE";
 
while {true} do {
_detect = player inArea _trigger;
 
if(_detect isEqualTo true) then {
_marker setMarkerColor "ColorBlue";
};
 
if(_detect isEqualTo false) then {
_marker setMarkerColor "ColorRed";
 
};
sleep 1;
};

So i created i new file with code and use #include in config.cpp, description.ext, mission.sqm but all time get a error in server start

2dba9c4a9f4743a98d8704b5581467fd.png

and i try too in initServer.sqf but not work and no errors.

Ah... i put de pos in code 

_trigger = createTrigger ["EmptyDetector", [2078.180,0,5242.590]];
_marker = createMarker ["triggerMarker", [2078.180,0,5242.590]]

Is correct?

Share this post


Link to post
Share on other sites

Format is not correct.

Here is an example and how to get the correct format

Type in console copyToClipboard format ["%1",getPos player];

[3169.54,2588.52]

Markers should not have a Z coordinate - (getPos format = X,Y,Z)

Delete Z

Also I really don't know what you're telling me about how you're starting it. But it goes inside init.sqf wrapped inside if is server

if(isServer) then {

execVM "custom\,marker.sqf";

};

But everything else looks right.

Share this post


Link to post
Share on other sites
Advertisement

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

  • Recently Browsing   0 members

    No registered users viewing this page.