BadHabitz 235 Posted June 17, 2019 So, I've got a basic script that I'm adding as an addAction to a box: if (!local player) exitWith {}; player addBackpack "B_Parachute"; hint "Parachute equipped"; What I want to do is add a check that makes sure the backpack slot is empty first, and if not it will give a hint "Please unequip backpack". Also, the locality check on the first line... I know it doesn't hurt anything when I use it, for this and other scripts, but do I need it? Thanks in advance. Share this post Link to post Share on other sites
POLPOX 778 Posted June 17, 2019 backpack player returns backpack what carried by player, and if empty will returns "". 1 Share this post Link to post Share on other sites
BadHabitz 235 Posted June 17, 2019 Thanks. This code works for me. if (!local player) exitWith {}; if (backpack player != "") exitWith {hint "Please unequip backpack";}; player addBackpack "B_Parachute"; hint "Parachute equipped"; Share this post Link to post Share on other sites
Mr H. 402 Posted June 17, 2019 45 minutes ago, BadHabitz said: if (!local player) exitWith {}; is unnecessary : the player is always local. 3 1 Share this post Link to post Share on other sites