ACE3/addons/overheating/functions/fnc_getBarrelMass.sqf
jonpas 742626ff1a
General - Relative script_component.hpp includes (#9378)
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-09-12 20:58:10 +02:00

23 lines
421 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: mharis001, Glowbal, PabstMirror, drofseh
* Get the mass of the weapons barrel.
*
* Arguments:
* 0: Weapon <STRING>
*
* Return Value:
* Barrel Mass <NUMBER>
*
* Example:
* [currentWeapon ACE_player] call ace_overheating_fnc_getBarrelMass
*
* Public: No
*/
params ["_weapon"];
private _barrelMass = ([_weapon] call FUNC(getWeaponData)) select 7;
_barrelMass