Jaden Vance 1 Posted April 22, 2019 Is it possible to add an action from an equipable item, (In my case, a certain backpack) to appear when the item is eqquiped? Share this post Link to post Share on other sites
SpaceHippo 26 Posted April 22, 2019 It is possible. The addAction command has a parameter that only shows the action when the code in the parameter is true. In your case, you would probably use the backpack command in the condition parameter. Would look something like this: player addAction [ "<title>", { params ["_target", "_caller", "_actionId", "_arguments"]; // some code... }, [], 1.5, true, true, "", "(backpack _orignalTarget) == 'some_classname'", // _target, _this, _originalTarget 50, false, "", "" ]; Share this post Link to post Share on other sites
pierremgi 4851 Posted April 22, 2019 You can addAction on player (or unit) if he's equipped with a specific backpack. What's a specific backpack? For example, a backpack you succeed in naming it. For example a backpack object, from 3den, you placed somewhere on the map and name myBackpack ... Now you can check (in addAction condition) if: unitBackpack _this == myBackpack 1 Share this post Link to post Share on other sites