setObjectMaterial: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\{\{GameCategory\|(arma[0123])\|[ _]?New[ _]Scripting[ _]Commands[ _]List\}\}" to "{{GameCategory|$1|New Scripting Commands}}")
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 03:30, 17 January 2021

Hover & click on the images for description

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

Notes

Bottom Section