sm.container.swap

Swaps two item slots.

Kind: Function

Environments: Game

Game

sm.container.swap( container, container, slotFrom, slotTo )

Open the full Game reference

Availability: Server only

Parameters:

Name Type Description
container Container The first container.
container Container The second container.
slotFrom integer The first slot
slotTo integer The second slot

Returns:

Type Description
boolean Indicates if the action is possible.