{"name":"BIN_fnc_setTargetWeight","operator":null,"title":"BIN fnc setTargetWeight","type":"function","url":"https://community.bistudio.com/wiki/BIN_fnc_setTargetWeight","revid":286101,"updated":"2021-06-20T17:25:47Z","groups":["Behavior"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.94"}],"since":{"game":"arma3","name":"Arma 3","version":"1.94"},"arma3_since":"1.94","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"BIN_fnc_setTargetWeight Set target priroty which is used later by BIN_fnc_findTargetWeight function to find target.\n\n> [!NOTE]\n> This content is exclusive to the Arma 3 Contact Expansion.","syntaxes":[{"syntax":"[param0, param1] call BIN_fnc_setTargetWeight","since":null,"effect":null,"exec":null,"params":[{"name":"param0","type":null,"types":[],"optional":false,"default":null,"description":"_input - Unit, vehicle, group or side.","since":null,"text":"0: _input - Unit, vehicle, group or side.","source":"docblock"},{"name":"param1","type":null,"types":[],"optional":false,"default":null,"description":"_value - scalar above 0 - weight which is later used by selectRandomWeighted script command. Values equal or less than 0 are excluded from target selection","since":null,"text":"1: _value - scalar above 0 - weight which is later used by selectRandomWeighted script command. Values equal or less than 0 are excluded from target selection","source":"docblock"}],"returns":{"type":"","types":[],"description":null,"text":""},"inferred":true}],"examples":[{"text":"```sqf\n[west,0] call BIN_fnc_setTargetWeight - all units from side \"west\" will be ignored by targeting system\n[player,10] call BIN_fnc_setTargetWeight - Increase player chance of being targeted by drone weapons\n[bis_car,0] call BIN_fnc_setTargetWeight - Vehicle & it is crew will be ignored by targeting system\n```","code":["[west,0] call BIN_fnc_setTargetWeight - all units from side \"west\" will be ignored by targeting system\n[player,10] call BIN_fnc_setTargetWeight - Increase player chance of being targeted by drone weapons\n[bis_car,0] call BIN_fnc_setTargetWeight - Vehicle & it is crew will be ignored by targeting system"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":[],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Behavior","Functions","Introduced with Arma 3 version 1.94"],"docblock":{"author":null,"description":"BIN_fnc_setTargetWeight Set target priroty which is used later by BIN_fnc_findTargetWeight function to find target.","params":[{"index":0,"name":null,"types":[],"optional":false,"default":null,"description":"_input - Unit, vehicle, group or side.","text":"_input - Unit, vehicle, group or side."},{"index":1,"name":null,"types":[],"optional":false,"default":null,"description":"_value - scalar above 0 - weight which is later used by selectRandomWeighted script command. Values equal or less than 0 are excluded from target selection","text":"_value - scalar above 0 - weight which is later used by selectRandomWeighted script command. Values equal or less than 0 are excluded from target selection"}],"returns":null,"examples":["[west,0] call BIN_fnc_setTargetWeight - all units from side \"west\" will be ignored by targeting system\n[player,10] call BIN_fnc_setTargetWeight - Increase player chance of being targeted by drone weapons\n[bis_car,0] call BIN_fnc_setTargetWeight - Vehicle & it is crew will be ignored by targeting system"],"syntax":null,"execution":null,"notes":null,"requirements":null,"meta":{},"text":"BIN_fnc_setTargetWeight\nSet target priroty which is used later by BIN_fnc_findTargetWeight function to find target.\n\nInput:\n    0:\n        _input - Unit, vehicle, group or side.\n    1:\n        _value - scalar above 0 - weight which is later used by selectRandomWeighted script command. Values equal or less than 0 are excluded from target selection\n\nExamples:\n\n    [west,0] call BIN_fnc_setTargetWeight - all units from side \"west\" will be ignored by targeting system\n    [player,10] call BIN_fnc_setTargetWeight - Increase player chance of being targeted by drone weapons\n    [bis_car,0] call BIN_fnc_setTargetWeight - Vehicle & it is crew will be ignored by targeting system"},"filled_from_docblock":["params","syntax","examples","description"]}