BIS_fnc_limitAmmunition

From Bohemia Interactive Community
Revision as of 20:58, 20 May 2017 by Dedmen (talk | contribs) (1 revision imported: BIS Functions update 2/7)
Jump to navigation Jump to search


Hover & click on the images for description

Description

Description:
/*
	Author: Vaclav "Watty Watts" Oliva

	Description:
	Limits the number of magazines carried by individual unit. Each container (uniform, vest and backpack) can be limited separately or left untouched.
	The function limits the number of magazines of each unique ammo category in respective container. Items like First Aid Kit or Mine Detector are not affected by the function.

	Set the minimum and maximum values in an array, for example [0.5,1] will set the magazine count anywhere between 50-100% of default count.

	Parameters:
	Select 0 - OBJECT: Target unit
	Select 1 - ARRAY: Uniform magazines, use [<0-1>,<0-1>] or [] to skip. Default is [0.4,0.8].
	Select 2 - ARRAY: Vest magazines, use [<0-1>,<0-1>] or [] to skip. Default is [0.4,0.8].
	Select 3 - ARRAY: Backpack magazines, use [<0-1>,<0-1>] or [] to skip. Default is [0.4,0.8].

	Returns:
	Boolean

	Examples:
	_limit = [player] call BIS_fnc_limitAmmunition;
	_limit = [player,[],[0.5,0.5],[0,1]] call BIS_fnc_limitAmmunition;
*/

// Params
(Placeholder description extracted from the function header by BIS_fnc_exportFunctionsToWiki)
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
Syntax needed
Return Value:
Return value needed

Examples

Example 1:

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

Notes

Bottom Section