Fix copy key failing when player has no backpack

Related to #1567, so I made this a function so it can be reused. People
should call this whenever they are adding a toolbelt item which the
player may already have. It has localized strings and handles spawning
the weapon holder on water, land and rooftop.

Tested both the sledgehammer and key copying. Confirmed all three
conditions are working.
This commit is contained in:
ebaydayz
2016-02-18 22:12:13 -05:00
parent 4f18f1c884
commit fd78f27250
8 changed files with 51 additions and 35 deletions

View File

@@ -1,7 +1,7 @@
/*
Description:
Checks whether the player has the required tools equipped || not
&& displays a message if a tool is missing from the tool belt.
Checks whether the player has the required tools equipped or not
and displays a message if a tool is missing from the tool belt.
Parameter(s):
_this: <array> list of tool names the player is required to have