mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
742626ff1a
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
24 lines
498 B
Plaintext
24 lines
498 B
Plaintext
#include "..\script_component.hpp"
|
|
/*
|
|
* Author: drofseh
|
|
* Get current temperature of weapon.
|
|
*
|
|
* Arguments:
|
|
* 0: Unit <OBJECT>
|
|
* 1: Weapon <STRING>
|
|
*
|
|
* Return Value:
|
|
* Current ammunition temperature <NUMBER>
|
|
*
|
|
* 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];
|