Sign in to follow this  
Followers 0
BeloffHost

Count players in specific zone

2 posts in this topic

I need to count how many players are currently in specific zone (for example airport safezone) by server. How can I do this?

Edited by BeloffHost

Share this post


Link to post
Share on other sites

_pos = [14599.966,16797.193];  //Center position of the trader defined in mission.sqf of the trader zone.  This coordinate is for the main airfield trader.
 _players = _pos nearEntities["Exile_Unit_Player",175]; //Change the 175 to the radius defined in mission.sqf file for the zone.
_playercount = count _players;

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
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.