GetObjectLayer

Category: Objects / Status
Since engine version: 7.0 OC

Description

Returns the layer the object is in.

Syntax

object GetObjectLayer();

Remark

Layers in OC do not affect the drawing of objects onto the screen, but they affect the interaction of objects. Objects in different layers do not interaction with each other. You can for example use layers to make sure NPCs can not be killed or thrown out of the landscape by the players.
See also: FindObject, FindObjects, Find_AnyLayer, Find_Layer, SetObjectLayer
Maikel, 2015-09