{"name":"setObjectMaterialGlobal","operator":null,"title":"setObjectMaterialGlobal","type":"command","url":"https://community.bistudio.com/wiki/setObjectMaterialGlobal","revid":370027,"updated":"2024-10-27T23:19:13Z","groups":["Object Manipulation"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.54"}],"since":{"game":"arma3","name":"Arma 3","version":"1.54"},"arma3_since":"1.54","branch":null,"locality":{"argument":"global","effect":"global","server_exec":false},"exec":null,"description":"Set the material of the given selection on all computers in a network session.","syntaxes":[{"syntax":"obj setObjectMaterialGlobal [selection, material]","since":null,"effect":null,"exec":null,"params":[{"name":"obj","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"obj: Object"},{"name":"selection","type":"Number or Arma 3 v2.10 String","optional":false,"default":null,"description":null,"types":["Number","String"],"since":null,"text":"selection: Number or Arma 3 v2.10 String"},{"name":"material","type":"String","optional":false,"default":null,"description":"material path. Since Arma 3 v2.20 using **\"#reset\"** would reset to default material.","types":["String"],"since":null,"text":"material: String - material path. Since Arma 3 v2.20 using **\"#reset\"** would reset to default material."}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"obj","types":["Object"]},"right":{"text":"[selection, material]","types":["Array"]}}],"examples":[{"text":"```sqf\nplayer setObjectMaterialGlobal [0, \"A3\\Structures_F\\Data\\Windows\\window_set.rvmat\"];\n```","code":["player setObjectMaterialGlobal [0, \"A3\\Structures_F\\Data\\Windows\\window_set.rvmat\"];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["setObjectTexture","setObjectTextureGlobal","getObjectTextures","setObjectMaterial","getObjectMaterials"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Object Manipulation","Introduced with Arma 3 version 1.54","Scripting Commands","Scripting Commands: Global Effect"]}