GetUnusedOverlayID

Category: Objects / Display
Since engine version: 1.0 OC

Description

Returns an unused overlay ID. The first unused overlay ID following base_index will be returned.

Syntax

int GetUnusedOverlayID(int base_index);

Parameter

base_index:
ID of the overlay after which you want to start the search.

Remark

The main object image does not count as overlay, so base_index should be 1 or higher.
See also: SetGraphics
Clonkonaut, 2008-05