GalloViking Posted December 25, 2021 Share Posted December 25, 2021 (edited) Greetings fellow survivors! I am trying to add my custom action to the list of actions to use with the action button (spacebar). While I know exactly what lines of code to add to the playercontroller.lua to make this work (I have added it to the base game file for testing purposes and it works perfectly fine) I am simply unable to override it in the modmain through the use of AddComponentPostIni. Could anyone show me how it's done? Edited December 25, 2021 by GalloViking Link to comment https://forums.kleientertainment.com/forums/topic/136502-how-to-override-an-existing-components-function/ Share on other sites More sharing options...
KXWl1 Posted December 26, 2021 Share Posted December 26, 2021 AddComponentPostInit. Link to comment https://forums.kleientertainment.com/forums/topic/136502-how-to-override-an-existing-components-function/#findComment-1528271 Share on other sites More sharing options...
GalloViking Posted December 26, 2021 Author Share Posted December 26, 2021 Thanks, but I've literally said that I can't do it by myself and I need someone to show me. Link to comment https://forums.kleientertainment.com/forums/topic/136502-how-to-override-an-existing-components-function/#findComment-1528287 Share on other sites More sharing options...
KXWl1 Posted December 27, 2021 Share Posted December 27, 2021 18 hours ago, GalloViking said: Thanks, but I've literally said that I can't do it by myself and I need someone to show me. I suggest you cover it, but the consequences..... Link to comment https://forums.kleientertainment.com/forums/topic/136502-how-to-override-an-existing-components-function/#findComment-1528445 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