josra102 Posted November 18, 2024 Share Posted November 18, 2024 Hello, I need help with the action with the Krampus sack. The idea is to click the item on the bag, but it puts it in the bag and that's it. Maybe you can somehow set the priority Here is the code I use: AddAction("DISMANTLE_TRINKET", "Разобрать", function(act) if act.invobject then act.invobject.components.disassembly_trinket:dismantle(act.target, act.doer) return true end return false end) AddComponentAction("USEITEM", "disassembly_trinket", function(inst, doer, target, actions, right) if doer:HasTag("technician") then if target:HasTag("disassemblytrinket") then table.insert(actions, GLOBAL.ACTIONS.DISMANTLE_TRINKET) end end end) AddStategraphActionHandler("wilson", ActionHandler(ACTIONS.DISMANTLE_TRINKET, "dolongaction")) AddStategraphActionHandler("wilson_client", ActionHandler(ACTIONS.DISMANTLE_TRINKET, "dolongaction")) Link to comment https://forums.kleientertainment.com/forums/topic/160721-help-with-the-krampus-sack/ Share on other sites More sharing options...
yanecc Posted November 19, 2024 Share Posted November 19, 2024 GLOBAL.ACTIONS.DISMANTLE_TRINKET.priority = 1 Link to comment https://forums.kleientertainment.com/forums/topic/160721-help-with-the-krampus-sack/#findComment-1757663 Share on other sites More sharing options...
josra102 Posted November 19, 2024 Author Share Posted November 19, 2024 Thanks, it helped Link to comment https://forums.kleientertainment.com/forums/topic/160721-help-with-the-krampus-sack/#findComment-1757727 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now