GenericMeme46 13 Share Posted August 21, 2019 How can I get the number of npcs/players interacting at the same time with the local player? Link to comment Share on other sites More sharing options...
LostVirt 106 Share Posted August 22, 2019 Havn't tested but probably something like this: getNpcs().all(npc -> npc != null && npc.isInteracting(getLocalPlayer())).size(); Link to comment Share on other sites More sharing options...
LostVirt 106 Share Posted August 22, 2019 And if player it would probably look something like this: getPlayers().all(player -> player != null && player.isInteracting(getLocalPlayer())).size(); Link to comment Share on other sites More sharing options...
GenericMeme46 13 Author Share Posted August 22, 2019 Yeah I could have swore there was another simpler way to do it but it looks like there's not. Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.