#include "script_component.hpp" /* * Author: drofseh * Get current temperature of weapon's ammo. * * Arguments: * 0: Unit * 1: Weapon * * Return Value: * Current ammunition temperature * * Example: * [player, currentWeapon player] call ace_overheating_fnc_getAmmoTemperature * * Public: Yes */ params ["_unit", "_weapon"]; private _ammoTempVarName = format [QGVAR(%1_ammoTemp), _weapon]; _unit getVariable [_ammoTempVarName, ambientTemperature select 0]