1
0

fnc_impulseDecrease.sqf 306 B

12345678910111213
  1. _vehicle = _this;
  2. //systemChat "decrease";
  3. private _impulse_state = _vehicle getvariable ["impulsorStatus", 0];
  4. _impulse_state = _impulse_state - 1;
  5. if (_impulse_state < -1) then
  6. {
  7. _impulse_state = -1;
  8. };
  9. _vehicle setvariable ["impulsorStatus", _impulse_state, true];
  10. _this call rd501_fnc_impulseApply;