Jump to content

how to make character not jump on boats


Recommended Posts

hi, im working on a character which has fear of the sea and con is shouldnt jump on boats but doing this before worked but with sea sells sea shells update it stopped working and i dont know how to fix it :-(

inst.components.locomotor.hop_distance = 0

 

  • Like 1
Link to comment
Share on other sites

6 minutes ago, --- -.- said:

hi, im working on a character which has fear of the sea and con is shouldnt jump on boats but doing this before worked but with sea sells sea shells update it stopped working and i dont know how to fix it :-(


inst.components.locomotor.hop_distance = 0

 

Try removing the "embarker" component like this?

inst:RemoveComponent("embarker")

I have a feeling this might crash the game. Doesn't hurt to try though
 

Also what happened to your past username, Warbucks? :[

  • Like 2
Link to comment
Share on other sites

unfortunately removing embarker makes character just stare at boats forever when you get near one lol

thank you for the help tho :D

 

Spoiler
On 5/2/2020 at 6:17 PM, Hornete said:

Also what happened to your past username, Warbucks? :[

he has moved on to heaven now i am just a humble ape

 

  • Sad 1
Link to comment
Share on other sites

this work even better it doesnt glitch like before you helped me a lot thanks!!

it glitches the character still goes on boats if lag compensation is enabled but this is best it gets probably

Edited by --- -.-
  • Like 1
Link to comment
Share on other sites

ok so

inst.components.locomotor:SetAllowPlatformHopping(false)

works but stops working if "Lag Compensation" was turned on and if it was always on then it doesn't work. I think this is a bug so I will report it

  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...