Difference between revisions of "Init (Kosher Arsenal)"

From cluster wiki
Jump to navigation Jump to search
Line 18: Line 18:
<dt style="clear:both;font-weight:bold;position:absolute;padding:.3em;">Groups:</dt>
<dt style="clear:both;font-weight:bold;position:absolute;padding:.3em;">Groups:</dt>
<dd style="width:90%;padding:.3em .3em .3em 7em;"><div style="display:block;">
<dd style="width:90%;padding:.3em .3em .3em 7em;"><div style="display:block;">
Utility Functions: Eric's Mission Framework
Kosher Arsenal: Eric's Mission Framework
</div></dd>
</div></dd>
  </dl>  
  </dl>  

Revision as of 19:13, 15 June 2021

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:

[light, forcedPrimary] 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 equiped. [Default: true]

Return Value:

Boolean - Returns true on success.

Examples
Example 1:
[false, true] call EMF_fnc_kosherArsenal;
Example 1:
[true] call EMF_fnc_kosherArsenal;
Example 1:
[["GERMANY_MID90_ARMY_WDL"]] call EMF_fnc_kosherArsenalLoad;
[false] call EMF_fnc_kosherArsenal;
Additional Information
See also:


Notes