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 https://forums.kleientertainment.com/forums/topic/48753-adding-a-component/ 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