VIS_Local

Category: Objects / Visibility
Since engine version: 4.9.1.0 GWE

Description

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.

Syntax

int VIS_Local ();

Remark

This value is also defined as a constant. Thus the parameter brackets can be omitted.

Examples

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).
See also: GetVisibility, SetVisibility, VIS_All, VIS_Allies, VIS_Enemies, VIS_God, VIS_LayerToggle, VIS_None, VIS_OverlayOnly, VIS_Owner
Sven2, November 2001