VIS_Enemies

Category: Objects / Visibility
Since engine version: 4.9.1.0 GWE

Description

Constant for GetVisibility/SetVisibility. The object is visible for all enemires of the owner.

Syntax

int VIS_Enemies ();

Remark

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

Example

var obj;
while (obj=FindObject(BANR,0,0,0,0,0,0,0,0,obj)) SetVisibility(VIS_Enemies() | VIS_God(), obj);
while (obj=FindObject(BANP,0,0,0,0,0,0,0,0,obj)) SetVisibility(VIS_Enemies() | VIS_God(), obj);
All banners are only visible for the individual enemies of their owners.
See also: GetVisibility, SetVisibility, VIS_All, VIS_Allies, VIS_God, VIS_LayerToggle, VIS_Local, VIS_None, VIS_OverlayOnly, VIS_Owner
Sven2, November 2001