Jump to content
Nd_

Check if a player is within a certain coordinates

Recommended Posts

How do you check if a player is within a set of coordinates?

 

Share this post


Link to post
Share on other sites

I don't know if you can, but you can check if they are in an exact block,

every 1 tick:
	loop all players:
		if loop-player's location is "0, 0, 0":
			do something

I am not sure if this works, I'm just guessing its going to be something along those lines

 


Hello! I'm SoloStrafe!
 

Skills:

Skript

Most of the plugins on MH

Minehut:

I got VIP rank on 8/1/2019

I am friended to Kailum aka the best mod on minehut and I worked for him before he became a MH Jr. Mod

Share this post


Link to post
Share on other sites
3 minutes ago, SoloStrafe said:

I don't know if you can, but you can check if they are in an exact block,


every 1 tick:
	loop all players:
		if loop-player's location is "0, 0, 0":
			do something

I am not sure if this works, I'm just guessing its going to be something along those lines

 

Ok, Thanks!

Share this post


Link to post
Share on other sites

You can try to loop entities between 2 locations, never tried that thought. Easiest way is to just check his region

Share this post


Link to post
Share on other sites
On 7/26/2019 at 2:42 AM, OMan100 said:

You can try to loop entities between 2 locations, never tried that thought. Easiest way is to just check his region

I found out that you can do

player's x coordinate is between -5.5 and 14.5:

for each

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...