Pianobeats Posted January 9, 2015 Share Posted January 9, 2015 Ok. So I want the ghost to drop nightmare fuel. But the problem is, the ghost.lua prefab doesn't have a "lootdropper" component. So I'm not really sure how I would add that to my mod. Any ideas? I know the answer is probably simple. Here is my code right now. --For Ghostsfunction ghostpostinit(inst) inst.components.lootdropper:SetLoot("nightmarefuel") --No lootdropper component inst.components.lootdropper.numrandomloot = 0endAddPrefabPostInit("ghost", ghostpostinit) 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.