i'm trying coding a new plugin to my server and i need some way to get nearby players in x radius but dont know how to
i already tried to play with some code
int layer = LayerMask.GetMask("Construction", "Prevent Building", "Construction Trigger", "Trigger", "Deployed", "Default", "World", "Player (server)");
List<BaseEntity> list = new List<BaseEntity>();
Vis.Entities<BaseEntity>(radio.ServerPosition, 10f, list, layer, QueryTriggerInteraction.UseGlobal);
Puts("List size: " + list.Count);
foreach(BaseEntity e in list) {
Puts(" - " + e.GetType().Name);
}but i couldn't get it to work
i'm not sure is it because i don't use correct layerMask or is that even correct method
where you can even find all this layersMask that you can use with this????
can someone please help me or point me to right direction, thanks :)