Difference between revisions of "Init (Kosher Arsenal)"

From cluster wiki
Jump to navigation Jump to search
Line 1: Line 1:
===Description===
===Description===
{| class="wikitable"
{| class="wikitable"
!Description:
|<span style="border:5px double black">!Description:</span>|
|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.
|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.
|-
|-
Line 10: Line 10:
|Utility Functions: Eric's Mission Framework
|Utility Functions: Eric's Mission Framework
|}
|}
===Syntax===
===Syntax===
{| class="wikitable"
{| class="wikitable"
Line 25: Line 24:


===Examples===
===Examples===
{| class="wikitable"
// Initializes Kosher Arsenal with light off and forced primary
|// Initializes Kosher Arsenal with light off and forced primary
[false, true] call '''EMF_fnc_kosherArsenal''';
[false, true] call '''EMF_fnc_kosherArsenal''';
 
|-
// Initializes Kosher Arsenal with light on
|// Initializes Kosher Arsenal with light on
[true] call '''EMF_fnc_kosherArsenal''';


[true] call '''EMF_fnc_kosherArsenal''';
// Loads a loadout and initializes with light off
|-
<nowiki>[["GERMANY_MID90_ARMY_WDL"]]</nowiki> call '''EMF_fnc_kosherArsenalLoad''';
|// Loads a loadout and initializes with light off
[false] call '''EMF_fnc_kosherArsenal''';
<nowiki>[["GERMANY_MID90_ARMY_WDL"]]</nowiki> call EMF_fnc_kosherArsenalLoad;


[false] call '''EMF_fnc_kosherArsenal''';
|}


===Notes===
===Notes===
[[Category:Kosher Arsenal: Eric's Mission Framework]]
[[Category:Kosher Arsenal: Eric's Mission Framework]]

Revision as of 17:39, 15 June 2021

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: 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

// Initializes Kosher Arsenal with light off and forced primary
[false, true] call EMF_fnc_kosherArsenal;
// Initializes Kosher Arsenal with light on
[true] call EMF_fnc_kosherArsenal;
// Loads a loadout and initializes with light off
[["GERMANY_MID90_ARMY_WDL"]] call EMF_fnc_kosherArsenalLoad;
[false] call EMF_fnc_kosherArsenal;


Notes