Tykvesh Posted September 27, 2016 Share Posted September 27, 2016 I mean when I trying to override any prefab.lua's local function in my modmain.lua Quote AddPrefabPostInit("prefab", function(inst) local function blah-blah(inst, blah-blah) *blah-blah* end nothing happens (I know that I'm doing something wrong because I have no idea how it should work ) p.s. sorry for my foolish google-translated english. Link to comment https://forums.kleientertainment.com/forums/topic/70486-how-to-override-anyprefabluas-local-function/ Share on other sites More sharing options...
_Q_ Posted September 28, 2016 Share Posted September 28, 2016 You can't overwrite any local functions. You can only access components of the prefab. As far as I know. Link to comment https://forums.kleientertainment.com/forums/topic/70486-how-to-override-anyprefabluas-local-function/#findComment-819793 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