fnc_impulseIncrease_LE.sqf 365 B

1234567891011121314
  1. _vehicle = _this;
  2. //systemChat "increase";
  3. private _impulse_state = _vehicle getvariable ["impulsorStatus", 0];
  4. if (speed _this < 10 && _impulse_state != -1) exitWith {};
  5. _impulse_state = _impulse_state + 1;
  6. if (_impulse_state > 3) then
  7. {
  8. _impulse_state = 3;
  9. };
  10. _vehicle setvariable ["impulsorStatus", _impulse_state, true];
  11. _this call rd501_fnc_impulseApplyLE;