Jump to content

Can I call a function that exists in prefab file from modmain.lua?


HomShaBom

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

Link to comment
Share on other sites

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.

×
  • Create New...