An_A3_Dev 0 Posted January 17, 2021 If I use hideOnUse in this addAction player addAction [ "title", // title { something; // script }, nil, // arguments 1.5, // priority true, // showWindow true, // hideOnUse "", // shortcut "true", // condition 50, // radius false, // unconscious "", // selection "" // memoryPoint ]; how do I unhide the addAction? Im using this to holster your weapon but I want the action to only show up when you have a weapon in your hand and for it to be removed when you have no weapon. Share this post Link to post Share on other sites
gc8 981 Posted January 17, 2021 On 1/17/2021 at 4:16 PM, An_A3_Dev said: Im using this to holster your weapon but I want the action to only show up when you have a weapon in your hand and for it to be removed when you have no weapon. put that weapon check in the condition, so that it's true only when there's a weapon to holster Share this post Link to post Share on other sites
An_A3_Dev 0 Posted January 17, 2021 On 1/17/2021 at 5:45 PM, gc8 said: put that weapon check in the condition, so that it's true only when there's a weapon to holster I don't know what im doing wrong but what would I put in the condition. I keep trying to find an example on the wiki but I can't find anything. Would you happen to have an example or be able to direct me to an example? Share this post Link to post Share on other sites
gc8 981 Posted January 18, 2021 you can use "currentweapon player" to check if there's any weapon selected. so this script would look something like this: player addAction [ "title", // title { something; // script }, nil, // arguments 1.5, // priority true, // showWindow true, // hideOnUse "", // shortcut "currentweapon player != '' ", // condition 50, // radius false, // unconscious "", // selection "" // memoryPoint ]; 1 Share this post Link to post Share on other sites
An_A3_Dev 0 Posted January 18, 2021 Ahh ok thank you so much Share this post Link to post Share on other sites