{"name":"addUniform","title":"addUniform","type":"command","url":"https://community.bistudio.com/wiki/addUniform","revid":318775,"updated":"2022-05-13T09:21:28Z","groups":["Unit Inventory"],"status":"ok","games":{"arma3":"0.50"},"since":"arma3 0.50","arma3_since":"0.50","locality":{"argument":"global","effect":"global"},"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","params":[{"name":"unit","type":"Object","type_expr":"Object"},{"name":"type","type":"String","type_expr":"String"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"unit"},"right":{"text":"type"}}],"examples":[{"code":["_unit addUniform \"U_B_CombatUniform_mcam\";"]}],"see_also":["forceAddUniform","isUniformAllowed","removeUniform","uniform"]}