Search the Community
Showing results for tags 'prefab'.
Found 3 results
I've added a hairfront_hat symbol to my character's build because their hairfront clips through hats normally. What I want to do now is override the OnEquip function in hats.lua. There's a problem though; it's a local function that's created inside of another local function (MakeHat(string)) so I don't think I can access it directly. The hats.lua file doesn't return an actual hats prefab; rather, it returns a whole bunch of hats made by MakeHat(string). I think this prevents me from adding a postinit to it because a hats prefab technically never gets made. Because of this, trying to modify components.equippable.onequipfn for hats didn't work. But I DID get it to work by modifing the onequipfn for the "tophat" prefab specifically. So here's what I want to know: is there a convenient way to do add a postinit for every prefab that MakeHat() can return, without overwriting the file? Or will I have to go through the list of return values in hats.lua and manually add the post init to every single one?
I don't have the Don't Starve prefabs in my hard drive, could somebody either give me a list of every prefab for every item in the game (which would take quite a while) or a downloadable link to the text document. Prefabs as in DebugSpawn("flower") for example.Thanks in advance.
For some reason I can't upload any pictures or change my avatar, when I try to change my avatar it linked me to a page saying this: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, firstname.lastname@example.org and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Also, when I try to post a pic, it will make an error pop up or not do anything at all, just taking away the add picture gui with no pic on the post.