#Plot system allows people to place in unclaimed plots

1 messages · Page 1 of 1 (latest)

pliant wadi
#

im trying to make a garden game you hold E to claim a plot and you can only place on that plot but my problem is that even without owning the plot you can still place on it

hallow jacinth
#

You can solve this with a lot of solutions. I would use the X Y Z Coordinates to limit it. For example Player1 owns Plot 1 and Plot 1 is from V(0,0,0) to V(25,25,25) big. You can check when the user wants to place something if the mouse position is inside this area. You basically just have to implement a logic that assigns the Plot and its size to the User which can be simply checked in a function when activated

pliant wadi
ornate idol
#

Please use a ss or copy paste into a code block by wrapping with ``

#

But I read it and

#

I think the most elegant solution would be to use math.clamp