{"name":"setObjectMaterialGlobal","title":"setObjectMaterialGlobal","type":"command","url":"https://community.bistudio.com/wiki/setObjectMaterialGlobal","revid":370027,"updated":"2024-10-27T23:19:13Z","groups":["Object Manipulation"],"status":"ok","games":{"arma3":"1.54"},"since":"arma3 1.54","arma3_since":"1.54","locality":{"argument":"global","effect":"global"},"description":"Set the material of the given selection on all computers in a network session.","syntaxes":[{"syntax":"obj setObjectMaterialGlobal [selection, material]","params":[{"name":"obj","type":"Object","type_expr":"Object"},{"name":"selection","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":"[selection, material]"}}],"examples":[{"code":["player setObjectMaterialGlobal [0, \"A3\\Structures_F\\Data\\Windows\\window_set.rvmat\"];"]}],"see_also":["setObjectTexture","setObjectTextureGlobal","getObjectTextures","setObjectMaterial","getObjectMaterials"]}