HomShaBom Posted November 30, 2016 Share Posted November 30, 2016 I want to add a haunting effect to "smallmeat" so in my modmain.lua I have: AddPrefabPostInit("smallmeat", function(inst) --here I want to call AddMonsterMeatChange(inst, "someotherprefab") that exists in \data\scripts\prefabs\meats.lua end) Is this possible, or will I have to just duplicate this method inside of my modmain.lua? --EDIT-- I meant to post this in DST forum, not DS Link to comment Share on other sites More sharing options...
Mobbstar Posted November 30, 2016 Share Posted November 30, 2016 It's a "local function", so you can't access it from your modmain. You can copy and paste the code, though. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.