Difference between revisions of "Init (Kosher Arsenal)"
Line 68: | Line 68: | ||
<dt style="clear:both;font-weight:bold;position:absolute;padding:.3em;">Example 2:</dt> | <dt style="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;"> | ||
[["myLoadout1", "myLoadout2"]] call '''emf_kosherArsenal_fnc_init'''; | [["myLoadout1", "myLoadout2"], true] call '''emf_kosherArsenal_fnc_init'''; | ||
</code></dd> | </code></dd> | ||
Revision as of 14:00, 26 March 2022
- 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:
[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
- Example 1:
[["myLoadout"], false, true] call emf_kosherArsenal_fnc_init;
- Example 2:
[["myLoadout1", "myLoadout2"], true] call emf_kosherArsenal_fnc_init;
- See also: