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
-
1
-
1
-
1
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 accountSign in
Already have an account? Sign in here.
Sign In Now