Overheating - Fix set temperature functions (#8770)

* Fix set temperature functions

* fix example
This commit is contained in:
Drofseh 2022-01-12 10:41:50 -08:00 committed by GitHub
parent 3aab21da43
commit 79c0510056
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -6,13 +6,13 @@
* Arguments:
* 0: Unit <OBJECT>
* 1: Weapon <STRING>
* 2: Temperature <STRING>
* 2: Temperature <NUMBER>
*
* Return Value:
* None
*
* Example:
* [player, currentWeapon player] call ace_overheating_fnc_setAmmoTemperature
* [player, currentWeapon player, 123] call ace_overheating_fnc_setAmmoTemperature
*
* Public: Yes
*/

View File

@ -6,19 +6,19 @@
* Arguments:
* 0: Unit <OBJECT>
* 1: Weapon <STRING>
* 2: Temperature <STRING>
* 2: Temperature <NUMBER>
*
* Return Value:
* None
*
* Example:
* [player, currentWeapon player] call ace_overheating_fnc_setWeaponTemperature
* [player, currentWeapon player, 123] call ace_overheating_fnc_setWeaponTemperature
*
* Public: Yes
*/
params ["_unit", "_weapon", "_temp"];
private _ammoTempVarName = format [QGVAR(%1_ammoTemp), _weapon];
private _weaponTempVarName = format [QGVAR(%1_temp), _weapon];
_unit setVariable [_ammoTempVarName, _temp];
_unit setVariable [_weaponTempVarName, _temp];