Jump to content
Robin Withes

Need help with tracking where a side is on the map

Recommended Posts

Hello,

i am trying to make a script where every 10 minutes it will mark everyones location 3600 meters around a object, but ONLY if they are bluefor.

I need some help with getting the playerlocation if the player matches to these criteria: player distance natoTracker < 3900 && player side == west

This is what i have so far

 

sleep 600;
_natoDownSouth2 = nearestObjects [natoTracker, [What do i need to put here to only store bluefor players in the variable], 3600];
if (player distance natoTracker < 3900 && player side == west) then {
  [[1,format["NATO has been spotted down south and their location has been marked on the map."]],"life_fnc_broadcast",civilian,false] spawn life_fnc_MP;

  
};

 

Share this post


Link to post
Share on other sites
_natoDownSouth2 = nearestObjects [natoTracker, ["Man"], 3600, false] select {side _x == west};
// If you want vehicles etc.:
_natoDownSouth2 = nearestObjects [natoTracker, ["Man", "LandVehicle", "Air"], 3600, false] select {side _x == west};

Faster if you do:

_natoDownSouth2 = (allPlayers - entities "HeadlessClient_F") select {side _x == west && _x distance2D natoTracker < 3900};

 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×