mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-25 09:59:18 +03:00
Missing Files
This commit is contained in:
21
SQF/dayz_code/actions/player_fixBottle.sqf
Normal file
21
SQF/dayz_code/actions/player_fixBottle.sqf
Normal file
@@ -0,0 +1,21 @@
|
||||
private ["_bottle","_tape","_fixedBottle"];
|
||||
|
||||
_bottle = _this;
|
||||
_tape = "equip_duct_tape";
|
||||
_fixedBottle = "ItemWaterBottleUnfilled";
|
||||
call gear_ui_init;
|
||||
closeDialog 0;
|
||||
|
||||
// Check if the player has the tape
|
||||
if (_tape in magazines player) then {
|
||||
//Fix the bottle
|
||||
player playActionNow "Medic";
|
||||
[player,"bandage",0,false] call dayz_zombieSpeak;
|
||||
sleep 6;
|
||||
player removeMagazine _bottle;
|
||||
player removeMagazine _tape;
|
||||
player addMagazine _fixedBottle;
|
||||
cutText [localize "str_fix_water_bottle", "PLAIN DOWN"];
|
||||
} else { //If the player doesn't have the tape
|
||||
cutText [localize "str_fix_water_bottle_fail", "PLAIN DOWN"];
|
||||
};
|
||||
Reference in New Issue
Block a user