This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
arma2:texturing:hiddenselectionstextures [2011-07-01 13:11] snakeman created hiddenselectionstextures initial page. |
arma2:texturing:hiddenselectionstextures [2011-07-01 13:47] (current) |
||
---|---|---|---|
Line 89: | Line 89: | ||
Empty quotes ("") can be used to hide the selection entirely. Each "sub" array of random textures can have a different number of different textures. | Empty quotes ("") can be used to hide the selection entirely. Each "sub" array of random textures can have a different number of different textures. | ||
+ | |||
+ | |||
+ | ====== Soldier hiddenSelections ====== | ||
+ | |||
+ | <code cpp> | ||
+ | hiddenSelectionsTextures[] = | ||
+ | { | ||
+ | "\CA\characters_E\civil\Tak_civil01\Data\Tak_civil01_1_co.paa" | ||
+ | }; | ||
+ | |||
+ | class EventHandlers: EventHandlers | ||
+ | { | ||
+ | init = "(_this select 0) setObjectTexture | ||
+ | [ | ||
+ | 0, | ||
+ | [ | ||
+ | ""\CA\characters_E\civil\Tak_civil01\Data\Tak_civil01_1_co.paa"", | ||
+ | ""\CA\characters_E\civil\Tak_civil01\Data\Tak_civil01_2_co.paa"", | ||
+ | ""\CA\characters_E\civil\Tak_civil01\Data\Tak_civil01_3_co.paa"", | ||
+ | ""\CA\characters_E\civil\Tak_civil01\Data\Tak_civil01_4_co.paa"", | ||
+ | ""\CA\characters_E\civil\Tak_civil01\Data\Tak_civil01_5_co.paa"" | ||
+ | ] | ||
+ | select floor random 5 | ||
+ | ]"; | ||
+ | }; | ||
+ | </code> |