Difference between revisions of "Init (Kosher Arsenal)"

From cluster wiki
Jump to navigation Jump to search
Line 11: Line 11:
</div></dd>
</div></dd>


<dt style="min-width:100%;clear:both;font-weight:bold;position:absolute;padding:.3em;">GroupsGroups:</dt>
<dt style="min-width:100%;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
Utility Functions: Eric's Mission Framework
Line 43: Line 43:
<dd style="width:90%;padding:.3em .3em .3em 7em;"><code style="border:#25A1A1 dashed 1px;display:block;">
<dd style="width:90%;padding:.3em .3em .3em 7em;"><code style="border:#25A1A1 dashed 1px;display:block;">
// Initializes Kosher Arsenal with light off and forced primary<br>
// Initializes Kosher Arsenal with light off and forced primary<br>
[false, true] call EMF_fnc_kosherArsenal;
[false, true] call EMF_fnc_kosherArsenal;</code></dd>
</code></dd>


<dt style="min-width:100%;clear:both;font-weight:bold;position:absolute;padding:.3em;">Example 2:</dt>
<dt style="min-width:100%;clear:both;font-weight:bold;position:absolute;padding:.3em;">Example 2:</dt>
<dd style="width:90%;padding:.3em .3em .3em 7em;"><code style="border:#25A1A1 dashed 1px;display:block;">
<dd style="width:90%;padding:.3em .3em .3em 7em;"><code style="border:#25A1A1 dashed 1px;display:block;">
  // Initializes Kosher Arsenal with light on<br>
  // Initializes Kosher Arsenal with light on<br>
  [true] call '''EMF_fnc_kosherArsenal''';
  [true] call '''EMF_fnc_kosherArsenal''';</code></dd>
</code></dd>


<dt style="min-width:100%;clear:both;font-weight:bold;position:absolute;padding:.3em;">Example 3:</dt>
<dt style="min-width:100%;clear:both;font-weight:bold;position:absolute;padding:.3em;">Example 3:</dt>
Line 56: Line 54:
  // Loads a loadout and initializes with light off<br>
  // Loads a loadout and initializes with light off<br>
  <nowiki>[["GERMANY_MID90_ARMY_WDL"]]</nowiki> call '''EMF_fnc_kosherArsenalLoad''';<br>
  <nowiki>[["GERMANY_MID90_ARMY_WDL"]]</nowiki> call '''EMF_fnc_kosherArsenalLoad''';<br>
  [false] call '''EMF_fnc_kosherArsenal''';
  [false] call '''EMF_fnc_kosherArsenal''';</code></dd>
</code></dd>
</dl>  
</dl>  


<div style="padding:0.33em 2em;font-size:1.2em;font-weight:bold;display:block;border-bottom: #25A1A1 solid 1px; background-color:#E0FFFF;color:#25A1A1">Notes</div>
<div style="padding:0.33em 2em;font-size:1.2em;font-weight:bold;display:block;border-bottom: #25A1A1 solid 1px; background-color:#E0FFFF;color:#25A1A1">Notes</div>
[[Category:Kosher Arsenal: Eric's Mission Framework]]
[[Category:Kosher Arsenal: Eric's Mission Framework]]

Revision as of 18:36, 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:

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