CoolBrozaurus Posted September 29, 2025 Share Posted September 29, 2025 I just started making mods, my first mod adds a character that I supposed to be a ghost but I just started so I am strugling with giving the character the ability of flying over water and pass trought walls Link to comment https://forums.kleientertainment.com/forums/topic/168228-how-can-i-give-character-a-flight-ability/ Share on other sites More sharing options...
FerniFrenito Posted September 29, 2025 Share Posted September 29, 2025 so the character can pass through objects and float on water and things like that: -- in the end of your master_postinit of your character MakeGhostPhysics(inst, 1, .5) -- param1: instance of your character, param2: mass (1 is used for ghost), param3: Radius, idk what is it, maybe a colision raidus inst.components.drownable.enabled = false Another configurations: inst:RemoveComponent("burnable") inst.components.freezable:Reset() inst:RemoveComponent("freezable") inst:RemoveComponent("propagator") inst:RemoveComponent("grogginess") inst:RemoveComponent("slipperyfeet") If you mean literally flying like a bird, well, that's a lot more complicated because the game allows you to position yourself at any height, but the game isn't designed for objects like that, so you'd have to do quite a bit of programming to be able to do that. If that's what you want, I could help you. Link to comment https://forums.kleientertainment.com/forums/topic/168228-how-can-i-give-character-a-flight-ability/#findComment-1837632 Share on other sites More sharing options...
CoolBrozaurus Posted September 30, 2025 Author Share Posted September 30, 2025 Thanks for the help, I will test this Link to comment https://forums.kleientertainment.com/forums/topic/168228-how-can-i-give-character-a-flight-ability/#findComment-1837692 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