ACE3/addons/overheating/functions/fnc_swapBarrelCallback.sqf

22 lines
484 B
Plaintext
Raw Normal View History

2015-01-16 02:36:31 +00:00
/*
* Author: Commy2
* Swap barrel callback
*
* Argument:
2015-02-08 22:54:12 +00:00
* 0: Unit <OBJECT>
* 1: Weapon <STRING>
2015-01-16 02:36:31 +00:00
*
* Return value:
* None
2015-02-08 22:54:12 +00:00
*
* Public: No
2015-01-16 02:36:31 +00:00
*/
#include "\z\ace\addons\overheating\script_component.hpp"
2015-01-13 03:23:14 +00:00
2015-01-16 02:36:31 +00:00
EXPLODE_2_PVT(_this,_player,_weapon);
2015-01-13 03:23:14 +00:00
// don't consume the barrel, but rotate through them.
2015-05-28 19:59:04 +00:00
[localize LSTRING(SwappedBarrel), QUOTE(PATHTOF(UI\spare_barrel_ca.paa))] call EFUNC(common,displayTextPicture);
2015-01-13 03:23:14 +00:00
_player setVariable [format [QGVAR(%1), _weapon], [0, 0], false];