GetVisibility

Category: Objects / Visibility
Since engine version: 4.9.1.0 GWE

Description

Returns the current visibility of an object. Also see SetVisibility.

Syntax

int GetVisibility (object pObj);

Parameter

pObj:
[opt] Object of which to retrieve the visibility. Can be 0 in local calls.

Example

var vis=GetVisibility();
if (vis && ~vis & VIS_Owner) SetVisibility(vis | VIS_Owner);
If the calling object is not visible for its owner, it will be made so.
See also: SetVisibility, VIS_All, VIS_Allies, VIS_Enemies, VIS_God, VIS_LayerToggle, VIS_Local, VIS_None, VIS_OverlayOnly, VIS_Owner
Sven2, November 2001