BIN fnc setTargetWeight: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - " it's" to " it is") |
Lou Montana (talk | contribs) m (Text replacement - "bin_fnc_" to "BIN_fnc_") |
||
(26 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=function | ||
| arma3 | | |game1= arma3 | ||
|version1= 1.94 | |||
| | |gr1= Behavior | ||
| <pre>/* | |descr= <pre>/* | ||
BIN_fnc_setTargetWeight | |||
Set target priroty which is used later by | Set target priroty which is used later by BIN_fnc_findTargetWeight function to find target. | ||
Input: | Input: | ||
Line 19: | Line 18: | ||
Examples: | Examples: | ||
[west,0] call | [west,0] call BIN_fnc_setTargetWeight - all units from side "west" will be ignored by targeting system | ||
[player,10] call | [player,10] call BIN_fnc_setTargetWeight - Increase player chance of being targeted by drone weapons | ||
[bis_car,0] call | [bis_car,0] call BIN_fnc_setTargetWeight - Vehicle & it is crew will be ignored by targeting system | ||
*/ | */</pre> | ||
</pre> | {{Wiki|placeholder}} | ||
{{Feature arma3contact}} | {{Feature|arma3contact}} | ||
| <!-- [] call [[BIN_fnc_setTargetWeight]] | |s1= <!-- [] call [[BIN_fnc_setTargetWeight]] --> | ||
| | |r1= | ||
| | |x1= | ||
| | |seealso= | ||
}} | }} | ||
Latest revision as of 18:25, 20 June 2021
Description
- Description:
/* BIN_fnc_setTargetWeight Set target priroty which is used later by BIN_fnc_findTargetWeight function to find target. Input: 0: _input - Unit, vehicle, group or side. 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 Examples: [west,0] call BIN_fnc_setTargetWeight - all units from side "west" will be ignored by targeting system [player,10] call BIN_fnc_setTargetWeight - Increase player chance of being targeted by drone weapons [bis_car,0] call BIN_fnc_setTargetWeight - Vehicle & it is crew will be ignored by targeting system */
- Execution:
- call
- Groups:
- Behavior
Syntax
- Syntax:
- Syntax needed
- Return Value:
- Return value needed
Examples
- Examples:
- Example needed
Additional Information
- See also:
- See also needed
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note