requestPathNodesInArea
Client
Asks for the path nodes of an area to be loaded beyond those near the player. The area stays loaded until releasePathNodes.
bool requestPathNodesInArea(float minX, minY, float maxX, maxY)
Parameters
| Name | Type | Description |
|---|---|---|
| minX, minY | float | The area's lowest corner. |
| maxX, maxY | float | The area's highest corner. |
Returns
Always true.
Example
requestPathNodesInArea(-3000, -3000, 3000, 3000)
local timer
timer = setTimer(function()
if arePathNodesLoaded() then
killTimer(timer)
outputDebugString("every path area is loaded")
end
end, 500, 0)NoteThere is only one requested area at a time: a new request replaces the previous one, from any resource.