Init (Kosher Arsenal)

From cluster wiki
Revision as of 13:57, 26 March 2022 by Eric (talk | contribs)
Jump to navigation Jump to search
Description
Description:

This function initializes kosherArsenal itself, it must be run locally (eg. from initPlayerLocal.sqf), it is blocking meaning it won't execute any code placed after the function call until the initial spawn arsenal has been exited.

Execution:

call

Groups:

Kosher Arsenal: Eric's Mission Framework

Syntax
Syntax:

[loadouts, light, forcePrimary, randomPos] call emf_kosherArsenal_fnc_init

Parameters:

loadouts: Array of Strings - Array of loadout files from rsc\loadouts (with .sqf omitted)

Light: Boolean - (Optional) When true creates a light source at the arsenal to help with visibility. [Default: false]

ForcePrimary: Boolean - (Optional) When true will not allow player to exit arsenal unless a primary firearm has been equiped. [Default: true]

RandomPos: Boolean - (Optional) When true randomizes players spawn position in a 5 meter radius. [Default: true]

Return Value:

None

Examples
Example 1:
[["myLoadout"], false, true] call emf_kosherArsenal_fnc_init;
Example 2:
"myLoadout1", "myLoadout2" call emf_kosherArsenal_fnc_init;
Additional Information
See also:


Notes