Loading path

Hello,

I want to get a random point on map, using following code:

the issue is if a player just connect to server, all path are not loaded…

I discover that define a player waypoint (using pause menu on map) will load area paths, is someone know the functions called when defined a player waypoint ?

Happy new year,

Mayak