ScriptEvent:allocCMIcon

From Mod Wiki

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.