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