M.Oeuf Posted August 25, 2020 Share Posted August 25, 2020 (edited) So I'm trying to make a custom weapon (gun) for my mod. So I got this error and I'm very confused on how to fix it, from what I can tell it's something going on in the actual game scripts but my actual code is the problem too. Here's the specified lines of code. Hopefully this is in the right topic! Edited August 25, 2020 by M.Oeuf Link to comment https://forums.kleientertainment.com/forums/topic/121231-how-to-fix-this-error/ Share on other sites More sharing options...
penguin0616 Posted August 25, 2020 Share Posted August 25, 2020 You need to show us the line numbers and the source for "chosenaigis". Those code screenshots don't tell us anything. Your error screenshot makes me suspect you have a typo in the first line of "chosenaigis" though. 1 Link to comment https://forums.kleientertainment.com/forums/topic/121231-how-to-fix-this-error/#findComment-1366026 Share on other sites More sharing options...
M.Oeuf Posted August 27, 2020 Author Share Posted August 27, 2020 (edited) OH yeah sorry this is the code for "chosenaigis" Edited August 27, 2020 by M.Oeuf Link to comment https://forums.kleientertainment.com/forums/topic/121231-how-to-fix-this-error/#findComment-1366555 Share on other sites More sharing options...
penguin0616 Posted August 27, 2020 Share Posted August 27, 2020 Yep, you have a typo on your first line. It says "ocal function" instead of "local function" 1 Link to comment https://forums.kleientertainment.com/forums/topic/121231-how-to-fix-this-error/#findComment-1366721 Share on other sites More sharing options...
M.Oeuf Posted August 28, 2020 Author Share Posted August 28, 2020 Oh don't know how I didn't notice that, sorry that it wasn't something so small that was the problem, thank you lol Actually now that I've managed to load in a new issue has come up, the gun starts out on the floor but I can't pick it up for some reason. Link to comment https://forums.kleientertainment.com/forums/topic/121231-how-to-fix-this-error/#findComment-1366878 Share on other sites More sharing options...
penguin0616 Posted August 29, 2020 Share Posted August 29, 2020 I'm not sure what would be causing that. Sorry :\ 1 Link to comment https://forums.kleientertainment.com/forums/topic/121231-how-to-fix-this-error/#findComment-1367180 Share on other sites More sharing options...
M.Oeuf Posted August 29, 2020 Author Share Posted August 29, 2020 Oh ok that's fine, I appreciate the help with everything else Link to comment https://forums.kleientertainment.com/forums/topic/121231-how-to-fix-this-error/#findComment-1367326 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