AgainstMatter Posted January 31, 2015 Share Posted January 31, 2015 Okay, so i need help (again) with a couple of things. If you know how to do any one these things, please tell me c:Thank you. I need help with: How to make a character not visibleHow to make a character not visible to mobsHow to freeze a character how a couple of secondsHow to place a way point and then teleport back to it (with a button or something, doesn't really matter how)How to play the insanity sounds without the character being insaneHow to spawn a "statue" of the player in the sleeping animationHow to make a character temporally not being able to interact with tings (not being able to pick things up or cut down trees) Link to comment https://forums.kleientertainment.com/forums/topic/50041-need-help-with-alot-of-different-things/ Share on other sites More sharing options...
Blueberrys Posted February 1, 2015 Share Posted February 1, 2015 (edited) How to make a character not visible How to make a character not visible to mobsSee the files for shadow creatures. "..\scripts\prefabs\shadowcreature.lua" How to freeze a character how a couple of secondsI'm assuming you mean frozen in ice or something, not the winter-caused freezing. See the freezable component. "..\scripts\components\freezable.lua" How to place a way point and then teleport back to it (with a button or something, doesn't really matter how)See the purple staff's code. "..\scripts\prefabs\staff.lua" (look for "PURPLE STAFF") How to play the insanity sounds without the character being insane"..\scripts\prefabs\player_common.lua"inst.SoundEmitter:PlaySound("dontstarve/sanity/gonecrazy_stinger") How to spawn a "statue" of the player in the sleeping animation Hmm. This one might be a little more complicated. You could possibly make a prefab with the same animation files as the original prefab, but without the player controls and such. How to make a character temporally not being able to interact with tings (not being able to pick things up or cut down trees)Modify the player controller's functions. "..\scripts\components\playercontroller.lua"(Replacing the OnControl function should work)Use this to modify a component.local function component_modify_fn(inst) -- ...endAddComponentPostInit("component_name", component_modify_fn)Edit: Also have a look at this tutorial. Might be helpful for a lot of the things you need. Edited February 1, 2015 by Blueberrys Link to comment https://forums.kleientertainment.com/forums/topic/50041-need-help-with-alot-of-different-things/#findComment-608375 Share on other sites More sharing options...
AgainstMatter Posted February 1, 2015 Author Share Posted February 1, 2015 @BlueberrysThank you, thank you, thank you.I don't know what i'd do without you helping me haha.I see a lot of things are already in the game.I'll be having a closer look in game files before asking for help next time Link to comment https://forums.kleientertainment.com/forums/topic/50041-need-help-with-alot-of-different-things/#findComment-608455 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