Jump to content

Recommended Posts

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

Edited by HomShaBom

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...