mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-05-16 15:43:20 +03:00
Organize files a bit and removed non source pbo's
This commit is contained in:
16
SQF/dayz_code/actions/dog/speed.sqf
Normal file
16
SQF/dayz_code/actions/dog/speed.sqf
Normal file
@@ -0,0 +1,16 @@
|
||||
private ["_array", "_handle", "_speed", "_dog"];
|
||||
_array = _this select 3;
|
||||
_handle = _array select 0;
|
||||
_speed = _array select 1;
|
||||
|
||||
player removeAction s_player_speeddog;
|
||||
s_player_speeddog = -1;
|
||||
|
||||
_dog = _handle getFSMVariable "_dog";
|
||||
|
||||
if(player distance _dog > 5) then {
|
||||
[nil,player,rSAY,["dog_slowDown", 120]] call RE;
|
||||
};
|
||||
|
||||
_handle setFSMVariable ["_maxSpeed", _speed];
|
||||
_dog setVariable ["currentSpeed", _speed];
|
||||
Reference in New Issue
Block a user