M MY Multiplayer: Wiki
Side
Kind

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

NameTypeDescription
minX, minYfloatThe area's lowest corner.
maxX, maxYfloatThe 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.

See also