ScriptEvent:allocDecal

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

string material -- Name of the material to use with this decal.

Result

integer

Supported By

sdSysCallThread

Comments

  • If a decal could not be allocated, the result will be -1.
  • A limited number of decals can be allocated using this, so care should be taken to clean them up properly, using freeDecal.

Functionality

Allocates a decal using the supplied material, and returns a handle to it.