mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
23 lines
392 B
Plaintext
23 lines
392 B
Plaintext
|
/*
|
||
|
* Author: commy2
|
||
|
*
|
||
|
* Get the muzzles of a weapon.
|
||
|
*
|
||
|
* Argument:
|
||
|
* 0: A weapon in cfgWeapons (String)
|
||
|
*
|
||
|
* Return value:
|
||
|
* All weapon muzzles (Array)
|
||
|
*/
|
||
|
|
||
|
private ["_weapon", "_muzzles"];
|
||
|
|
||
|
_weapon = _this select 0;
|
||
|
|
||
|
_muzzles = getArray (configFile >> "CfgWeapons" >> _weapon >> "muzzles");
|
||
|
|
||
|
if ("this" in _muzzles) then {
|
||
|
_muzzles set [_muzzles find "this", _weapon];
|
||
|
};
|
||
|
_muzzles
|