Random skin

From The DarkMod Wiki
Revision as of 11:32, 1 August 2010 by Tels (talk | contribs) (add)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Introduction

The spawnarg random_skin is a TDM addition. If set, it overrides the "skin" spawnarg of an entity with one random item from the given list. Example

"random_skin"   "tdm_fruit_yellowish, tdm_fruit_brownish, '', tdm_fruit_green"

The "," seperates the entries, the spaces are optional. Note the empty entry ('', two single quotes, or empty), this denotes the original skin.

Another example, creating a painting with a random image from these:

"random_skin"   "portrait_mage,artist,stormy_sea"