Crew-Served Weapons Functions

ace_csw_fnc_compatibleMagazines

Description

Gets all carry magazines that can be loaded into a CSW, includes weapons added by script.

Parameters

Index Description Datatype(s) Default Value
0 CSW OBJECT  

Return Value

Description Datatype(s)
Compatible Carry Magazines HASHMAP

Example

[cursorObject] call ace_csw_fnc_compatibleMagazines

Authors

  • LinkIsGrim

ace_csw_fnc_getSourceCompatibleMagazines

Description

Gets compatible magazines to load a CSW from a magazine source.

Parameters

Index Description Datatype(s) Default Value
0 Magazine Source OBJECT objNull
1 CSW OBJECT objNull
2 Compatible carry magazines, if the caller already has them HASHMAP read from the CSW

Return Value

Description Datatype(s)
Magazines, grouped by classname, fullest of each type first ARRAY

Example

[backpackContainer player, cursorObject] call ace_csw_fnc_getSourceCompatibleMagazines

Authors

  • LinkIsGrim

ace_csw_fnc_isModEnabled

Description

General condition to check if the mod is enabled.

Parameters

None

Return Value

Description Datatype(s)
If the mod is enabled BOOL

Example

[] call ace_csw_fnc_isModEnabled

Authors

  • tcvm