Difference between revisions of "cmf kosherArsenal fnc ammobox"

From cluster wiki
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 24: Line 24:
|x1= {{code|lang=scilab|[_myBox] call cmf_kosherArsenal_fnc_ammobox;}}
|x1= {{code|lang=scilab|[_myBox] call cmf_kosherArsenal_fnc_ammobox;}}


|var1= {{!}} GLOBAL {{!}}{{!}} Unit {{!}}{{!}} cmf_kosherArsenal_ammobox_initialized{{!}}{{!}} A variable to check if object is initialized as an ammobox
|seealso= [[cmf_kosherArsenal_fnc_forceArsenal]] [[cmf_kosherArsenal_fnc_forceClose]]
[[cmf_kosherArsenal_fnc_init]] [[cmf_kosherArsenal_fnc_kosherAI]]
 
|var1= {{!}} GLOBAL {{!}}{{!}} Unit {{!}}{{!}} cmf_kosherArsenal_ammobox_initialized {{!}}{{!}} A variable to check if object is initialized as an ammobox


|event1= {{!}} LOCAL {{!}}{{!}} cmf_kosherArsenal_onAmmoboxOpen {{!}}{{!}} [ ] {{!}}{{!}} Is raised locally when an ammobox is opened
|event1= {{!}} LOCAL {{!}}{{!}} cmf_kosherArsenal_onAmmoboxOpen {{!}}{{!}} [ ] {{!}}{{!}} Is raised locally when an ammobox is opened
|event2= {{!}} LOCAL {{!}}{{!}} cmf_kosherArsenal_onAmmoboxClose{{!}}{{!}} [ ] {{!}}{{!}} Is raised locally when an ammobox is closed
|event2= {{!}} LOCAL {{!}}{{!}} cmf_kosherArsenal_onAmmoboxClose{{!}}{{!}} [ ] {{!}}{{!}} Is raised locally when an ammobox is closed
}}
}}

Latest revision as of 21:47, 17 December 2022


Hover & click on the images for description
Description
Description:
This function will initialize the provided object as a kosherArsenal ammobox. This will allow any unit initialized with kosher arsenal to rearm from this crate but not change their overall loadout.
Execution:
Call
Groups:
CMF3: kosherArsenal
Syntax
Syntax:
[object] call cmf_kosherArsenal_fnc_ammobox
Parameters:
object: Object - The object to set as an ammobox
Return Value:
None
Examples
Example 1:
[_myBox] call cmf_kosherArsenal_fnc_ammobox;
Additional Information
See also:
cmf_kosherArsenal_fnc_forceArsenal cmf_kosherArsenal_fnc_forceClose cmf_kosherArsenal_fnc_init cmf_kosherArsenal_fnc_kosherAI
Internal Variables
Locality Namespace Name Description
GLOBAL Unit cmf_kosherArsenal_ammobox_initialized A variable to check if object is initialized as an ammobox
Events
Locality Name Variables Description
LOCAL cmf_kosherArsenal_onAmmoboxOpen [ ] Is raised locally when an ammobox is opened
LOCAL cmf_kosherArsenal_onAmmoboxClose [ ] Is raised locally when an ammobox is closed
Notes