GetUnusedOverlayID
Category: Objects
/ Display
Since engine version: 4.9.8.5 CR
Description
Returns an unused overlay ID. The first unused overlay ID following iBaseIndex will be returned.
Syntax
int GetUnusedOverlayID
(int iBaseIndex, object pObj);
Parameters
- iBaseIndex:
ID of the overlay after which you want to start the search.
- pObj:
Object whose overlays you want to modify. Can be 0 in local calls.
Remark
The main object image does not count as overlay, so iBaseIndex should be 1 or higher.
Clonkonaut, Mai 2008