JustanAccount Posted December 11, 2016 Share Posted December 11, 2016 Hi, I want to add the component -- inst:AddComponent("named") -- onto Beefalo. I want to do this on the modmain.lua and be able to add names I would like for the beefalo. Any help on how to do this without copying the beefalo.lua to my MOD. Thank you if you offer a moments help Link to comment Share on other sites More sharing options...
Kzisor Posted December 11, 2016 Share Posted December 11, 2016 AddPrefabPostInit('beefalo', function(inst) if not GLOBAL.TheWorld.ismastersim then return inst end inst:AddComponent('named') return inst end) Link to comment Share on other sites More sharing options...
JustanAccount Posted December 11, 2016 Author Share Posted December 11, 2016 @Kzisor You're very generous, thank you. I had just got there myself as I came back to check the thread Link to comment Share on other sites More sharing options...
JustanAccount Posted December 11, 2016 Author Share Posted December 11, 2016 @Kzisor Also any Idea on how I would ADD a pig name without affecting the originals? 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