Init (Kosher Arsenal)
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
- GroupsGroups:
Utility Functions: Eric's Mission Framework
Syntax
- Syntax:
[Light, ForcePrimary] call EMF_fnc_kosherArsenal
- Parameters:
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 equipped. [Default: true]
- Return Value:
Boolean - Returns true on success.
Examples
- Example 1:
// Initializes Kosher Arsenal with light off and forced primary
[false, true] call EMF_fnc_kosherArsenal;- Example 2:
// Initializes Kosher Arsenal with light on
[true] call EMF_fnc_kosherArsenal;- Example 3:
// Loads a loadout and initializes with light off
[["GERMANY_MID90_ARMY_WDL"]] call EMF_fnc_kosherArsenalLoad;
[false] call EMF_fnc_kosherArsenal;
Notes