How to create a circle zone with coordinate system?

How would you input the radius,location, and center of a circle to make it so when a player enters the radius of the circle it transmits? Like trying to make a pseudo tag system? Like ik the formula for a circle i just dont know how to compare it or properly input it

How big is the circle? As small as one terrain piece? Or larger?

Im not worried about the measurements im trying to figure out how to properly use the circle formula to create a pseudo tag system with more capabilities

You just have to act like it’s a square in the code I guess :man_shrugging:

Unless you can have zones be a circle.

Track the x and y values of the player using the player coordinates device.
Find the coordinates of the center of the circle through trial and error.
If (playerX - circleX)^2 + (playerY - circleY)^2 < radius^2, then the player is inside the circle.

4 Likes

2 things:
A) Yes, zones can be circles.
B) What exactly are you asking here? Are you just wanting various rings and seeing which two they are in-between? Please elaborate for me and other helpers.

Oop accidently marked a solution (darn these clumsy fingers) but i’ll test tomorrow im bout to sleep

This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.