World.loadCell

Load a cell for player. The cell will stay loaded until the player steps into the cell.

Kind: Function

Environments: Game

Game

world:loadCell( x, y, player, callback, params, ref )

Open the full Game reference

Availability: Server only

Parameters:

Name Type Description
world World The world.
x integer Cell X position.
y integer Cell Y Position.
player Player A player to load for, can be nil.
callback (optional) string Lua function to call when cell is loaded. Callback parameters are ( world, x, y, player, params )
params (optional) any Parameter object passed to the callback.
ref (optional) ref Script ref to callback object.