ACE3/addons/overheating/functions/fnc_swapBarrelCallback.sqf
2015-01-13 22:26:55 -03:00

13 lines
405 B
Plaintext

// by commy2
#include "\z\ace\addons\overheating\script_component.hpp"
private ["_player", "_weapon"];
_player = _this select 0;
_weapon = _this select 1;
// don't consume the barrel, but rotate through them.
[localize "STR_ACE_Overheating_SwappedBarrel", QUOTE(PATHTOF(UI\spare_barrel_ca.paa))] call EFUNC(common,displayTextPicture);
_player setVariable [format [QGVAR(%1), _weapon], [0, 0], false];