{"name":"setObjectMaterial","title":"setObjectMaterial","type":"command","url":"https://community.bistudio.com/wiki/setObjectMaterial","revid":379304,"updated":"2026-10-30T23:48:42Z","groups":["Object Manipulation"],"status":"ok","games":{"arma3":"0.50"},"since":"arma3 0.50","arma3_since":"0.50","locality":{"argument":"global","effect":"local"},"description":"Sets material of object selection. The selection number is defined through the hiddenselection[] = {} array in the vehicle's config (starting with 0).","syntaxes":[{"syntax":"obj setObjectMaterial [selectionNumber, material]","params":[{"name":"obj","type":"Object","type_expr":"Object"},{"name":"selectionNumber","type":"Number or Arma 3 v2.10 String","type_expr":"Number | String"},{"name":"material","type":"String","description":"material path. Since Arma 3 v2.20 using **\"#reset\"** would reset to default material.","type_expr":"String"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"obj"},"right":{"text":"[selectionNumber, material]"}}],"examples":[{"code":["car setObjectMaterial [0,\"A3\\Structures_F\\Data\\Windows\\window_set.rvmat\"];\ncar setObjectMaterial [1,\"A3\\Structures_F\\Data\\Windows\\window_set.rvmat\"];"]}],"see_also":["getObjectMaterials","setObjectTextureGlobal","getObjectTextures","setObjectTexture","setObjectMaterialGlobal"]}