2016-05-30 16:37:03 +00:00
|
|
|
//#define DEBUG_MODE_FULL
|
|
|
|
#include "script_component.hpp"
|
2016-09-04 14:44:22 +00:00
|
|
|
private ["_oldLaserCode", "_laserCode"];
|
2016-05-30 16:37:03 +00:00
|
|
|
|
|
|
|
_oldLaserCode = ACE_player getVariable [QGVAR(code), ACE_DEFAULT_LASER_CODE];
|
|
|
|
if(_oldLaserCode > ACE_DEFAULT_LASER_CODE) then {
|
|
|
|
_laserCode = _oldLaserCode - 1;
|
|
|
|
ACE_player setVariable [QGVAR(code), _laserCode, false];
|
|
|
|
};
|
|
|
|
if(_laserCode != _oldLaserCode) then {
|
|
|
|
[format ["%1: %2", localize LSTRING(laserCode), _laserCode]] call EFUNC(common,displayTextStructured);
|
2015-05-01 18:31:37 +00:00
|
|
|
};
|