{"name":"setStatValue","title":"setStatValue","type":"command","url":"https://community.bistudio.com/wiki/setStatValue","revid":319644,"updated":"2022-05-13T09:24:37Z","groups":["System"],"status":"ok","games":{"arma3":"1.18"},"since":"arma3 1.18","arma3_since":"1.18","description":"Sets a value to a given stat.\nA list of possible StatNames can be found here: Arma 3: Stat Names\nIts important to note that most Stats are restricted to scripts and missions in certain paths.\nFor example \"ExpWarlockDown\" is restricted to scripts in any subdirectory of `\"a3\\Missions_F_Exp\\Campaign\\Missions\\\"`","syntaxes":[{"syntax":"setStatValue [name, value]","params":[{"name":"name","type":"String","type_expr":"String"},{"name":"value","type":"Number","type_expr":"Number"}],"returns":{"type":"Boolean","type_expr":"Boolean"},"form":"unary","right":{"text":"[name, value]"}}],"examples":[{"code":["setStatValue [\"ExpWarlockDown\", 1]; // Unlocks the \"Warlock Down\" Steam achivement"]}],"see_also":["getStatValue","Arma 3: Stat Names"]}