mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Get reload time from QGVAR(buddyReloadTime)
This commit is contained in:
parent
7665935641
commit
398b76f30b
@ -18,8 +18,11 @@
|
||||
params ["_unit", "_target", "_weapon", "_magazine"];
|
||||
TRACE_4("params",_unit,_target,_weapon,_magazine);
|
||||
|
||||
// private _reloadTime = getNumber (configFile >> "CfgWeapons" >> _weapon >> "magazineReloadTime"); //Not a good config value, use a constant for now:
|
||||
private _reloadTime = 2.5;
|
||||
private _reloadTime = if (isNumber (configFile >> "CfgWeapons" >> _weapon >> QGVAR(buddyReloadTime))) then {
|
||||
getNumber (configFile >> "CfgWeapons" >> _weapon >> QGVAR(buddyReloadTime))
|
||||
} else {
|
||||
2.5
|
||||
};
|
||||
|
||||
// do animation
|
||||
[_unit] call EFUNC(common,goKneeling);
|
||||
|
Loading…
Reference in New Issue
Block a user