World.loadNavMeshWithHandle
Load a cell and nav mesh. The cell will stay loaded until the cell is released with LoadCellHandle.release()
Kind: Function
Environments: Game
Game
world:loadNavMeshWithHandle( x, y, callback, params, ref )
Availability: Server only
or when the LoadCellHandle is garbage collected
Parameters:
| Name | Type | Description |
|---|---|---|
world |
World | The world. |
x |
integer | Cell X position. |
y |
integer | Cell Y Position. |
callback (optional) |
string | Lua function to call when cell nav mesh is created. Callback parameters are ( world, x, y, params ) |
params (optional) |
any | Parameter object passed to the callback. |
ref (optional) |
ref | Script ref to callback object. |
Returns:
| Type | Description |
|---|---|
| LoadCellHandle | Handle to releasing cell. |