# CheckVisibility

Objects
Visibility
4.9.5.0 CE
bool
int player Player of which to retrieve the visibility. Can be 0 in local calls.
object obj Object of which to retrieve the visibility. Can be 0 in local calls.
Returns the current visibility of an object. Also see SetVisibility.
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.
SetVisibility
CheckVisibility
VIS_All
VIS_None
VIS_Owner
VIS_Allies
VIS_Enemies
VIS_God
VIS_Local
Sven2
2001-11