Spidergamer1248 Posted March 8, 2018 Author Share Posted March 8, 2018 That did not fix it. The bot is still invisible. Oh no this is not a custom character I am just using wilson XD Link to comment https://forums.kleientertainment.com/forums/topic/86464-ok-i-need-a-little-help-with-coding/page/2/#findComment-1012250 Share on other sites More sharing options...
pickleplayer Posted March 8, 2018 Share Posted March 8, 2018 woops, that's my bad. I totally thought there was some missing custom animations or something. Okay then, back to the beginning. Did there used to be a point where he was visible? If you take out all his brains and stategraph and just do inst.AnimState:PlayAnimation("idle_loop") does anything show up? Link to comment https://forums.kleientertainment.com/forums/topic/86464-ok-i-need-a-little-help-with-coding/page/2/#findComment-1012254 Share on other sites More sharing options...
Spidergamer1248 Posted March 8, 2018 Author Share Posted March 8, 2018 Yes! It kinda slides forever though and stuff XD. I am guessing it is a problem in my stategraph. Link to comment https://forums.kleientertainment.com/forums/topic/86464-ok-i-need-a-little-help-with-coding/page/2/#findComment-1012262 Share on other sites More sharing options...
pickleplayer Posted March 8, 2018 Share Posted March 8, 2018 alright, then it might be something in the stategraph. I would put some print fns on all of the important states onenter functions so that you can tell if it's going to the right state. maybe for the Idle state, put print("IDLE") so you will be able to tell when they enter idle (if they even enter idle at all) in-game, press Ctrl-L to bring up the screen that will show whatever gets printed out. if "IDLE" never appears on screen, then its never getting to the idle state Maybe some of the PlayAnimation() functions have incorrect animation names set, so they just go invisible every time they enter that state. Link to comment https://forums.kleientertainment.com/forums/topic/86464-ok-i-need-a-little-help-with-coding/page/2/#findComment-1012266 Share on other sites More sharing options...
Spidergamer1248 Posted March 8, 2018 Author Share Posted March 8, 2018 OMG there is a bug making it nearly impossible to select my mod in the mod list XD. It just kinda keeps me from scrolling It's not going to state idle after the state spawn Link to comment https://forums.kleientertainment.com/forums/topic/86464-ok-i-need-a-little-help-with-coding/page/2/#findComment-1012272 Share on other sites More sharing options...
pickleplayer Posted March 8, 2018 Share Posted March 8, 2018 sounds like a different mod is causing a problem, or something in modinfo Link to comment https://forums.kleientertainment.com/forums/topic/86464-ok-i-need-a-little-help-with-coding/page/2/#findComment-1012275 Share on other sites More sharing options...
Spidergamer1248 Posted March 8, 2018 Author Share Posted March 8, 2018 Quote events = { EventHandler("animover", function(inst) inst.sg:GoToState("idle") end), }, this is how I change states from inside the spawn state? Link to comment https://forums.kleientertainment.com/forums/topic/86464-ok-i-need-a-little-help-with-coding/page/2/#findComment-1012276 Share on other sites More sharing options...
Spidergamer1248 Posted March 8, 2018 Author Share Posted March 8, 2018 please tell me that missing parentheses wasn't the only problem XD Link to comment https://forums.kleientertainment.com/forums/topic/86464-ok-i-need-a-little-help-with-coding/page/2/#findComment-1012296 Share on other sites More sharing options...
pickleplayer Posted March 8, 2018 Share Posted March 8, 2018 Yea that's the right way to do it. But if no animation is playing when he enters the spawn state, then "animover" probably won't run (so he'll never go to the idle state). In inst.AnimState:PlayAnimation("spawn") in your spawn state, does the "spawn" animation exist? In wilson's normal stategraph, I don't see any use of an animation called "spawn" There's a chance that it exists, and just not used in the stategraph file itself, but try replacing that with a different animation name that you know exists. (like "idle_loop") and see if that fixes his ability to go to the idle state after spawning. But that's just assuming that he's starting in the "spawn" state. If not, it's not going to change anything anyways Link to comment https://forums.kleientertainment.com/forums/topic/86464-ok-i-need-a-little-help-with-coding/page/2/#findComment-1012494 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