mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
16 lines
382 B
Plaintext
16 lines
382 B
Plaintext
// by commy2
|
|
|
|
private "_script_handle";
|
|
|
|
_script_handle = _this spawn {
|
|
_recoilFactor = _this select 0;
|
|
_recoverThreshold = _this select 1;
|
|
|
|
player setUnitRecoilCoefficient (_recoilFactor * unitRecoilCoefficient player);
|
|
|
|
waitUntil {getFatigue player < _recoverThreshold};
|
|
|
|
player setUnitRecoilCoefficient (_recoilFactor / unitRecoilCoefficient player);
|
|
};
|
|
_script_handle
|