Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:3.5

Description

Description:Moves an Editor Object to the specified layer.

Syntax

Syntax:map moveToLayer [edobj, layer]
Parameters:
  • map: Control - Map control.
  • edobj: Editor Object - Editor object to move.
  • layer: Number - Index of destination layer (-1 = base layer, 0 = first custom layer, and so on). If the index does not exist, the object is moved to the base layer.
Return Value:Nothing

Examples

Examples:
map moveToLayer ["_vehicle_2", 1]

Additional Information

See also: getObjectLayer, getLayers, findEditorObjects
Multiplayer: 
Problems: 

Notes