Robin Withes 0 Posted May 9, 2017 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
crewt 31 Posted May 9, 2017 _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