Next revision | Previous revision |
arma2:texturing:hiddenselectionstextures [2011/07/01 13:11] – created hiddenselectionstextures initial page. snakeman | arma2:texturing:hiddenselectionstextures [2024/08/02 10:31] (current) – links added. snakeman |
---|
====== hiddenSelectionsTextures ====== | ====== ArmA 2 hiddenSelectionsTextures ====== |
| |
| [[https://www.pmctactical.org/forum/viewforum.php?f=50|ArmA 2 Forum]], [[:arma2|ArmA 2 Home]], [[arma2:config|ArmA 2 Config]], [[arma2:file_formats|ArmA 2 File Formats]], [[arma2:missions|ArmA 2 Missions]], [[arma2:modeling|ArmA 2 3D Modeling]], [[arma2:scripting|ArmA 2 Scripting]], [[arma2:terrain|ArmA 2 Terrain]], [[arma2:texturing|ArmA 2 Texturing]], [[arma2:tools|ArmA 2 Tools]] |
| |
See also [[arma:texturing:custom_texture|ArmA custom texture]] and [[arma2:texturing:setobjecttexture|setObjectTexture]]. | See also [[arma:texturing:custom_texture|ArmA custom texture]] and [[arma2:texturing:setobjecttexture|setObjectTexture]]. |
| |
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> |
| |