setObjectMaterial: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\{\{GameCategory\|(arma[0123])\|[ _]?New[ _]Scripting[ _]Commands[ _]List\}\}" to "{{GameCategory|$1|New Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma3 |Game name= | | arma3 |Game name= | ||
Line 11: | Line 10: | ||
|gr1= Object Manipulation |GROUP1= | |gr1= Object Manipulation |GROUP1= | ||
| Sets material of object selection. The selection number is defined through the [[CfgVehicles_Config_Reference#hiddenSelections | hiddenselection]][]<nowiki>=</nowiki>{} array in the vehicle's config (starting with 0). |DESCRIPTION= | | Sets material of object selection. The selection number is defined through the [[CfgVehicles_Config_Reference#hiddenSelections | hiddenselection]][]<nowiki>=</nowiki>{} array in the vehicle's config (starting with 0). |DESCRIPTION= | ||
| obj '''setObjectMaterial''' [selectionNumber, material] |SYNTAX= | | obj '''setObjectMaterial''' [selectionNumber, material] |SYNTAX= | ||
Line 32: | Line 29: | ||
car [[setObjectMaterial]] [1,"A3\Structures_F\Data\Windows\window_set.rvmat"];</code>|EXAMPLE1= | car [[setObjectMaterial]] [1,"A3\Structures_F\Data\Windows\window_set.rvmat"];</code>|EXAMPLE1= | ||
| [[getObjectMaterials]], [[setObjectTextureGlobal]], [[getObjectTextures]], [[setObjectTexture]], [[setObjectMaterialGlobal]] |SEEALSO= | | [[getObjectMaterials]], [[setObjectTextureGlobal]], [[getObjectTextures]], [[setObjectTexture]], [[setObjectMaterialGlobal]] |SEEALSO= | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= | ||
}} | }} | ||
Revision as of 02:30, 17 January 2021
Description
- Description:
- Sets material of object selection. The selection number is defined through the hiddenselection[]={} array in the vehicle's config (starting with 0).
- Groups:
- Object Manipulation
Syntax
- Syntax:
- obj setObjectMaterial [selectionNumber, material]
- Parameters:
- obj: Object
- [selectionNumber, material]: Array
- selectionNumber: Number
- material: String
- Return Value:
- Nothing
Examples
- Example 1:
car setObjectMaterial [0,"A3\Structures_F\Data\Windows\window_set.rvmat"]; car setObjectMaterial [1,"A3\Structures_F\Data\Windows\window_set.rvmat"];
Additional Information
- See also:
- getObjectMaterialssetObjectTextureGlobalgetObjectTexturessetObjectTexturesetObjectMaterialGlobal
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note