ScriptEvent:allocCMIcon

From Mod Wiki
Revision as of 10:55, 5 November 2007 by Wizz (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Parameters

entity (cannot be null) owner -- Entity which owns the icon.
integer sort -- Initial sort value.

Result

integer

Supported By

sdSysCallThread

Comments

  • If a new icon cannot be created, the return value will be -1.

Functionality

Allocates a commandmap icon with an initial sort value, which belongs to the specified entity, and returns a handle to it.