# SetVisibility

Objects
Visibility
4.9.1.0 GWE
bool
int dwVisibility Bit mask defining the new visibility.
Either VIS_All or VIS_None or a bit mask of VIS_Owner, VIS_Allies, VIS_Enemies, VIS_God, and VIS_Local.
object obj Object the visibility of which is to be changed. Can be 0 in local calls.
Changes the visibility of an object. Objects can be made invisible for any group of players by providing a bit mask in dwVisibility.
SetVisibility(VIS_None(), GetCursor())
Makes the selected clonk of player 0 completely invisible.
SetVisibility(VIS_Owner() | VIS_Allies(), GetCursor())
Makes the selected clonk of player 0 only visible for his owner and allies.
GetVisibility
CheckVisibility
VIS_All
VIS_None
VIS_Owner
VIS_Allies
VIS_Enemies
VIS_God
VIS_Local
Sven2
2001-11