{"name":"addUniform","operator":null,"title":"addUniform","type":"command","url":"https://community.bistudio.com/wiki/addUniform","revid":318775,"updated":"2022-05-13T09:21:28Z","groups":["Unit Inventory"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma3","name":"Arma 3","version":"0.50"},"arma3_since":"0.50","branch":null,"locality":{"argument":"global","effect":"global","server_exec":false},"exec":null,"description":"Create a new uniform and try to link it into uniform slot (given uniform has to be supported by allowedUniforms list of target soldier).\n\n> [!NOTE]\n> To check if a uniform is allowed use isUniformAllowed, and to force an incompatible uniform use forceAddUniform.","syntaxes":[{"syntax":"unit addUniform type","since":null,"effect":null,"exec":null,"params":[{"name":"unit","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"unit: Object"},{"name":"type","type":"String","optional":false,"default":null,"description":null,"types":["String"],"since":null,"text":"type: String"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"unit","types":["Object"]},"right":{"text":"type","types":["String"]}}],"examples":[{"text":"```sqf\n_unit addUniform \"U_B_CombatUniform_mcam\";\n```","code":["_unit addUniform \"U_B_CombatUniform_mcam\";"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["forceAddUniform","isUniformAllowed","removeUniform","uniform"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Unit Inventory","Introduced with Arma 3 version 0.50","Scripting Commands","Scripting Commands: Global Effect"]}