Posts: 723
Threads: 366
Joined: Jun 2016
Hi,
I have area where i don't want player to came. I check every 1 sec is player in that area and i want to set him pos near that area but of course he couldn't go there i don't want use setplayerworldboundries
Posts: 506
Threads: 15
Joined: Mar 2009
Reputation:
0
So you already have a timer that checks if a player is in an area? Well if he is in that area, use SetPlayerPos to put him somewhere else.
Or is your question that you want to put him to the closest edge of the area?
Posts: 723
Threads: 366
Joined: Jun 2016
Yes but how to put him somewhere else? i don't want closest edge, i want to spawn out from area but near
Posts: 723
Threads: 366
Joined: Jun 2016
Yes , i use now onplayerenterdynamicarea, i know all area 4 corners i have them in variables. I don't know what you don't understand
Posts: 723
Threads: 366
Joined: Jun 2016
Yes i know but i want smth smarter calculations, maths that i don't need for everyarea write positions.. + maybe something like i could write what distance from that area player could by teleported