SlashCo Wiki

SlashCo.DrawHalo

  SlashCo.DrawHalo( table<Entity> ents, string or Color color, number passes = 1, boolean noZ = true )

Description

Draws halos around the specified entities.
This function may only be called while SlashCo halo drawing is active.
Invalid, invisible, or dormant entities are removed from the entity list before the halos are drawn.

Arguments

1table<Entity> ents

The table containing the entities to draw halos around.
Invalid, invisible, and dormant entities are removed from this table.

2string or Color color

The halo color. A color name from the global colors table or a Color object can be supplied.
Defaults to red when an invalid color is supplied.

3number passes = 1

The number of halo passes to draw.

4boolean noZ = true

Whether the halo should ignore depth and remain visible through geometry.