Well-met Posted January 28, 2022 Share Posted January 28, 2022 Hello If a heavy object is dropped into the sea, there is code that checks wheter its too close to land or not. If it is, the object will be immediately teleported to nearby ground. What code causes this and how can I disable it? Thank you Link to comment https://forums.kleientertainment.com/forums/topic/137191-heavy-objects-and-shores/ Share on other sites More sharing options...
Monti18 Posted January 29, 2022 Share Posted January 29, 2022 I think what causes this is the component submersible. If you check the code of the function Submerge(), it checks if there are waterpoints nearby. If not it will spawn the object on the land. So you will probably need to change how this function is run. You could probably change the CHECK_SPACING values to a higher value or add more possible checks so that it searches in a wider circle around the drop point for a place to drop it into the sea. So you will need to copy these functions and overwrite the Submerge() function. 1 Link to comment https://forums.kleientertainment.com/forums/topic/137191-heavy-objects-and-shores/#findComment-1536481 Share on other sites More sharing options...
Well-met Posted January 29, 2022 Author Share Posted January 29, 2022 unfortunately editing the CHECK_SPACING value does not seem to change anything. I tried 0 and 100 Link to comment https://forums.kleientertainment.com/forums/topic/137191-heavy-objects-and-shores/#findComment-1536500 Share on other sites More sharing options...
Well-met Posted January 30, 2022 Author Share Posted January 30, 2022 found it! you have to inst.components.submersible.force_no_repositioning = true the object in question 1 Link to comment https://forums.kleientertainment.com/forums/topic/137191-heavy-objects-and-shores/#findComment-1536691 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