Difference between revisions of "cmf kosherArsenal fnc init"
Jump to navigation
Jump to search
(Created page with "{{CMF Function |game1=arma3 |version1=0.50 |game2=cmf3 |version2=2.1.0 |game3=ace3 |version3=3.12.0 |descr=This function will initialize kosherArsenal for the local player...") |
|||
Line 28: | Line 28: | ||
|r1=None | |r1=None | ||
|x1= {{code|lang=scilab|[["exampleLoadout"], true, false, true] call cmf_kosherArsenal_fnc_init;}} | |x1= {{code|lang=scilab|<nowiki>[["exampleLoadout"], true, false, true] call cmf_kosherArsenal_fnc_init;</nowiki>}} | ||
|var1= {{!}} GLOBAL {{!}}{{!}} Unit {{!}}{{!}} cmf_kosherArsenal_loadout {{!}}{{!}} A variable containing the loadoutfile to use | |var1= {{!}} GLOBAL {{!}}{{!}} Unit {{!}}{{!}} cmf_kosherArsenal_loadout {{!}}{{!}} A variable containing the loadoutfile to use | ||
Line 35: | Line 35: | ||
|event2= {{!}} LOCAL {{!}}{{!}} cmf_kosherArsenal_onAmmoboxClose{{!}}{{!}} [ ] {{!}}{{!}} Is raised locally when the kosherArsenal arsenal is closed | |event2= {{!}} LOCAL {{!}}{{!}} cmf_kosherArsenal_onAmmoboxClose{{!}}{{!}} [ ] {{!}}{{!}} Is raised locally when the kosherArsenal arsenal is closed | ||
}} | }} |
Revision as of 15:43, 17 December 2022
Description
- Description:
- This function will initialize kosherArsenal for the local player.
- Execution:
- Call
- Groups:
- CMF3: kosherArsenal
Syntax
- Syntax:
- [loadouts, light, forePrimary, randomPos] call cmf_kosherArsenal_fnc_init
- Parameters:
- loadouts: Array - An array containing the filenames for loadouts to load (ommit .sqf from the filename).
- light: Boolean - When true will attach a light that is only visible for the unit in the arsenal.
- forcePrimary: Boolean - When true will force the unit to select a primary weapon before exiting the arsenal.
- randomPos: Boolean - When true will randomize the unit's position (to prevent cluttering when multiple units spawn in, is now deprecated as Arma 3 does this automatically).
- Return Value:
- None
Examples
- Example 1:
[["exampleLoadout"], true, false, true] call cmf_kosherArsenal_fnc_init;
Additional Information
- See also:
- See also needed
Internal Variables
Locality | Namespace | Name | Description |
---|---|---|---|
GLOBAL | Unit | cmf_kosherArsenal_loadout | A variable containing the loadoutfile to use |
Events
Locality | Name | Variables | Description |
---|---|---|---|
LOCAL | cmf_kosherArsenal_onOpen | [ ] | Is raised locally when the kosherArsenal arsenal is opened |
LOCAL | cmf_kosherArsenal_onAmmoboxClose | [ ] | Is raised locally when the kosherArsenal arsenal is closed |
Notes