Dcrew Posted February 13, 2020 Share Posted February 13, 2020 I have an ent spawner that spawns rock1 on 3 or more rocks within a radius, this works fine, but I am trying to not do this if any player is near it. Since when a player mines a rock and it spawns some rocks if there are 3 or more then this rock the player just mined will spawn back into a rock, I don't want that behavior. Link to comment Share on other sites More sharing options...
CarlZalph Posted February 13, 2020 Share Posted February 13, 2020 if #TheSim:FindEntities(x, y, z, radius, {"player"}) == 0 then -- No players in radius from coordinate {x,y,z} end 1 Link to comment Share on other sites More sharing options...
Dcrew Posted February 14, 2020 Author Share Posted February 14, 2020 Thank you very much Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now