Slimwaffle Posted July 17, 2018 Share Posted July 17, 2018 I am working on a scrap button for my game. I really need help with a problem. I attach my generic item script to my two crates. and my move item script to my player. Then in the scene for testing purposes I designate the small crate to give 4 brick and the large crate to give 30. But something is going wrong and it will give me the same amount both times. I want this to act independently. And I really need help. Because I don't want to have to create a new script for every single item I ever add to the game over its lifespan. I will attach a video and both my scripts so everyone can understand better. ItemMove.lua Error.mp4 GenericItem.lua Quote Link to comment Share on other sites More sharing options...
Slimwaffle Posted July 19, 2018 Author Share Posted July 19, 2018 You guys can pretty much ignore this post now. I fixed this by removing the calls to values in the start function of generic item.lua. And then putting all the add to table commands in move item and calling each value using pickInfo. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.