BIN fnc setTargetWeight: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "BIS_fnc_exportFunctionsToWiki)''</small> |" to "BIS_fnc_exportFunctionsToWiki)''</small> {{Feature arma3contact|This function is part of the Arma 3 Contact expansion only.}} |")
m (Text replacement - "bin_fnc_" to "BIN_fnc_")
 
(28 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function|Comments=
{{RV|type=function
____________________________________________________________________________________________


| arma3 |Game name=
|game1= arma3
|version1= 1.94


|1.94|Game version=
|gr1= Behavior
____________________________________________________________________________________________


| <pre>/*
|descr= <pre>/*
bin_fnc_setTargetWeight
BIN_fnc_setTargetWeight
Set target priroty which is used later by bin_fnc_findTargetWeight function to find target.
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 bin_fnc_setTargetWeight - all units from side "west" will be ignored by targeting system
[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
[player,10] call BIN_fnc_setTargetWeight - Increase player chance of being targeted by drone weapons
[bis_car,0] call bin_fnc_setTargetWeight - Vehicle & it's crew will be ignored by targeting system
[bis_car,0] call BIN_fnc_setTargetWeight - Vehicle & it is crew will be ignored by targeting system
*/
*/</pre>
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small>
{{Wiki|placeholder}}
{{Feature arma3contact|This function is part of the [[Arma 3 Contact]] expansion only.}} |Description=
{{Feature|arma3contact}}
____________________________________________________________________________________________


| <!-- [] call [[BIN_fnc_setTargetWeight]]; --> |Syntax=
|s1= <!-- [] call [[BIN_fnc_setTargetWeight]] -->


|p1= |Parameter 1=
|r1=


| |Return value=
|x1=
____________________________________________________________________________________________


|x1= <code></code> |Example 1=
|seealso=
____________________________________________________________________________________________
 
| |See also=
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Behavior|{{uc:setTargetWeight}}]]
[[Category:Functions|{{uc:setTargetWeight}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:setTargetWeight}}]]

Latest revision as of 18:25, 20 June 2021

Hover & click on the images for description

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
*/
🏗
Placeholder description extracted from the function header by BIS_fnc_exportFunctionsToWiki.
enoch icon ca.png
This content is exclusive to the Arma 3 Contact Expansion.
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