Kam297 Posted March 3, 2016 Share Posted March 3, 2016 (edited) I for the life of me can not freaking figure out how to reference scripts/widgets/crafttabs. I need to either use the method CraftTabs:IsCraftingOpen() or even better self(this is CraftTabs).crafting.open. If you can help me out I'll bake you a digital cookie. <3 Edited March 3, 2016 by Kam297 tagged solved Link to comment https://forums.kleientertainment.com/forums/topic/65070-refrencing-crafttabsiscraftingopen/ Share on other sites More sharing options...
Mobbstar Posted March 3, 2016 Share Posted March 3, 2016 (edited) You can access almost all widgets via player.HUD EDIT: Try GetPlayer().HUD:IsCraftingOpen() Edited March 3, 2016 by Mobbstar Link to comment https://forums.kleientertainment.com/forums/topic/65070-refrencing-crafttabsiscraftingopen/#findComment-729412 Share on other sites More sharing options...
Kam297 Posted March 3, 2016 Author Share Posted March 3, 2016 56 minutes ago, Mobbstar said: You can access almost all widgets via player.HUD EDIT: Try GetPlayer().HUD:IsCraftingOpen() funny how things work sometimes I went and made a component (track crafting) that updates from inside the crafting widget bla bla bla turns out it was just where is was putting the code was just really really noncompliant, moved this up to a lower level (the method that actually moves your camera rather then the method saying to run the method to move the camera) and tada it returns correctly, turning a really ugly fix into 2 lines. thanks a million I was convinced GetPlayer().HUD:IsCraftingOpen() was just calling to somewhere wrong or something. Link to comment https://forums.kleientertainment.com/forums/topic/65070-refrencing-crafttabsiscraftingopen/#findComment-729419 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