Serpens Posted July 25, 2019 Share Posted July 25, 2019 Seems to be a simple question, but I was not able to solve this on my own O.ô I want to add the ACTIONS.PICK animations from the SGWilson stategraph to the SGshadowwaxwell stategraph, What to do in modmain now? I already tried AddStategraphPostInit("SGshadowwaxwell", function(sg) print("HERE!") sg.states["dojostleaction"] = statedojostleaction sg.states["doshortaction"] = statedoshortaction sg.states["dolongaction"] = statedolongaction sg.states["domediumaction"] = statedomediumaction sg.actionhandlers[GLOBAL.ACTIONS.PICK] = actionhandlerpick -- table.insert(sg.states,statedojostleaction) -- table.insert(sg.states,statedoshortaction) -- table.insert(sg.states,statedolongaction) -- table.insert(sg.states,statedomediumaction) -- table.insert(sg.actionhandlers,actionhandlerpick) end) but for whatever reason "HERE" is never printed, so this does not work. I also tried to call AddStategraphState() for every single state and AddStategraphActionHandler() for the one action, but this did not work either ?! What is the way I should add it? Copy and editing the original stategraph file does work fine. Link to comment Share on other sites More sharing options...
Serpens Posted July 28, 2019 Author Share Posted July 28, 2019 (edited) The solution was (using this directly in modmain, without AddStategraphPostInit): AddStategraphActionHandler("shadowmaxwell",actionhandlerpick) AddStategraphState("shadowmaxwell",statedojostleaction) AddStategraphState("shadowmaxwell",statedoshortaction) AddStategraphState("shadowmaxwell",statedolongaction) AddStategraphState("shadowmaxwell",statedomediumaction) So I was using the wrong commands from modutil and I also used the filename of the stategraph instead of the name of it (found on the bottom of the file) My shadowmaxwell mod beta here:https://forums.kleientertainment.com/files/file/1968-beta-ultimate-maxwell-shadows-better-maxwell-shadows/ Edited July 28, 2019 by Serpens Link to comment 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