|
| 17 Apr 2017 10:31 AM |
If I want to figure out if a player is close to a position, do I need to have some sort of polling (while loop) on the server side that is constantly checking all the players in the lobby?
Is there any way I can avoid doing this? |
|
|
| Report Abuse |
|
|
| |
|
RogueMage
|
  |
| Joined: 28 Jan 2012 |
| Total Posts: 1235 |
|
|
| 17 Apr 2017 11:07 AM |
.Touched
Region3
idk what else |
|
|
| Report Abuse |
|
|
RogueMage
|
  |
| Joined: 28 Jan 2012 |
| Total Posts: 1235 |
|
|
| 17 Apr 2017 11:08 AM |
| You could send a raycast in the direction of the part/area you're looking for and find the the distance from that |
|
|
| Report Abuse |
|
|
|
| 17 Apr 2017 11:09 AM |
touched is better laggier tho
magnitude is best at most times
region 3 has a limit and also means iterating through much more things |
|
|
| Report Abuse |
|
|