# VIS_Local

Objects
Visibility
4.9.1.0 GWE
int
Constant for GetVisibility/SetVisibility. The object's visibility depends on the values in the object's indexed local variables. Each local variable may contain bits for 32 players in a bit mask.
This value is also defined as a constant. Thus the parameter brackets can be omitted.
Local
(0)=9; SetVisibility(VIS_Local());
The calling object is only visible for players 0 and 3.
Local
(1)=2; SetVisibility(VIS_Local() | VIS_God());
The calling object is only visible for player 33.
Local
(GetOwner()/32)=1<<(GetOwner()%32); SetVisibility(VIS_Local());
The calling object will be visible to its owner only (same as VIS_Owner).
GetVisibility
SetVisibility
VIS_All
VIS_None
VIS_Owner
VIS_Allies
VIS_Enemies
VIS_God
Sven2
2001-11