Jump to content

Player Ghosts pathfind around ocean


Hornete
  • Pending

1672890471_GIF10-30-202112-27-25PM.gif.6958c487e1e93197ff5dc6bdc36f792b.gif

Player Ghosts still try to attempt to pathfind around ocean tiles despite them being able to float over them.

Changing line 36 in player_common_extensions.lua in "ConfigureGhostLocomotor" to

inst.components.locomotor.pathcaps = { player = true, ignorecreep = true, allowocean = true } --Added allowocean

Will resolve the issue.

Edit: It might be necessary to implement a check for if the world has a ocean, just to make sure ghosts still pathfind around the void in the caves.


Steps to Reproduce

1. Die
2. Try to click on a land border across a small river
3. Notice your ghost still tries to pathfind around the river/ocean

  • Like 1
  • Sad 1
  • Big Ups 1



User Feedback


There are no comments to display.



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

×
  • Create New...