ACE3/addons/overheating/functions/fnc_setWeaponTemperature.sqf
jonpas 742626ff1a
General - Relative script_component.hpp includes (#9378)
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-09-12 20:58:10 +02:00

25 lines
483 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: drofseh
* Set weapon to specific temperature.
*
* Arguments:
* 0: Unit <OBJECT>
* 1: Weapon <STRING>
* 2: Temperature <NUMBER>
*
* Return Value:
* None
*
* Example:
* [player, currentWeapon player, 123] call ace_overheating_fnc_setWeaponTemperature
*
* Public: Yes
*/
params ["_unit", "_weapon", "_temp"];
private _weaponTempVarName = format [QGVAR(%1_temp), _weapon];
_unit setVariable [_weaponTempVarName, _temp];