mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-24 09:29:21 +03:00
Deprecated/Slow Commands
Stop using them!
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// unLoad_act.sqf
|
||||
// AUGUST 2010 - norrin
|
||||
|
||||
private ["_args","_vcl","_loop","_position","_isOnDeck","_unit","_name","_crewVcl"];
|
||||
private ["_args","_vcl","_loop","_unit","_name","_crewVcl"];
|
||||
|
||||
_args = _this select 3;
|
||||
_name = _args select 0;
|
||||
@@ -20,11 +20,6 @@ for [{ _loop = 0 },{ _loop < count _crewVcl },{ _loop = _loop + 1}] do
|
||||
sleep 0.05;
|
||||
_unit action ["EJECT", _vcl];
|
||||
sleep 1;
|
||||
_position = position _unit;
|
||||
_isOnDeck = getPos _unit in LHA_Deck;
|
||||
if (_isOnDeck) then {
|
||||
_unit setPosAsl [(_position select 0), (_position select 1), (LHA_height+1)];
|
||||
};
|
||||
_unit switchMove "";
|
||||
_unit switchMove "ainjppnemstpsnonwrfldnon";
|
||||
sleep 0.2;
|
||||
|
||||
@@ -50,7 +50,7 @@ fnc_usec_damageUnconscious = {
|
||||
private["_veh","_unit"];
|
||||
_veh = vehicle _this;
|
||||
_unit = _this;
|
||||
waitUntil{(((position _veh select 2 < 1) and (speed _veh < 1)) or (!r_player_unconscious))};
|
||||
waitUntil{(((([_veh] call FNC_GetPos) select 2 < 1) and (speed _veh < 1)) or (!r_player_unconscious))};
|
||||
if (r_player_unconscious) then {
|
||||
_unit action ["eject", _veh];
|
||||
waitUntil{((vehicle _this) != _this)};
|
||||
|
||||
Reference in New Issue
Block a user