{"name":"addScore","operator":null,"title":"addScore","type":"command","url":"https://community.bistudio.com/wiki/addScore","revid":310138,"updated":"2022-05-05T12:27:54Z","groups":["Multiplayer"],"status":"ok","replaced_by":[],"games":[{"game":"ofp","name":"Operation Flashpoint","version":"1.00"},{"game":"ofpe","name":"Operation Flashpoint: Elite","version":"1.00"},{"game":"arma1","name":"Armed Assault","version":"1.00"},{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"ofp","name":"Operation Flashpoint","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":"global","effect":"global","server_exec":true},"exec":null,"description":"Adds a number to the score of a unit. Negative values will remove from the score.","syntaxes":[{"syntax":"unit addScore score","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":"score","type":"Number","optional":false,"default":null,"description":null,"types":["Number"],"since":null,"text":"score: Number"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"unit","types":["Object"]},"right":{"text":"score","types":["Number"]}}],"examples":[{"text":"```sqf\nunit addScore 10;\n```","code":["unit addScore 10;"]},{"text":"```sqf\nunit addScore -1337; // reduce the unit's score by 1337 points\n```","code":["unit addScore -1337; // reduce the unit's score by 1337 points"]}],"multiplayer":"Server execution only","problems":null,"aliases":[],"see_also":["score","scoreSide","addScoreSide","getPlayerScores","Arma 3: Event Handlers"],"notes":[],"categories":["ArmA: Armed Assault: Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 2: Scripting Commands","Arma 3: Scripting Commands","Command Group: Multiplayer","Introduced with Operation Flashpoint version 1.00","Operation Flashpoint: Elite: Scripting Commands","Operation Flashpoint: New Scripting Commands","Operation Flashpoint: Scripting Commands","Scripting Commands","Scripting Commands: Global Effect","Scripting Commands: Server Execution","Take On Helicopters: Scripting Commands"]}