SetObjectLayer

Category: Objects / Status
Since engine version: N/A

Description

Changes the layer object of pobj and its contents to pnewlayer. By default all objects are in the global layer nil. If pnewlayer is nil the object is assigned to the global layer. Objects can only interact with each other if they are in the same layer. When an objects layer object is being deleted all objects in this layer are assigned to the global layer.

Syntax

bool SetObjectLayer (object pnewlayer, object pObj);

Parameters

pnewlayer:
layer object for pObj
pObj:
Object of which the layer object should be changed.
See also: Find_Layer, GetObjectLayer, VIS_LayerToggle
Fulgen, Clonk Wiki, Juli 2016