mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Overheating - Fix set temperature functions (#8770)
* Fix set temperature functions * fix example
This commit is contained in:
parent
3aab21da43
commit
79c0510056
@ -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
|
||||
*/
|
||||
|
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user