Jump to content

Recommended Posts

This has been discussed before, but I can't find the thread now.

 

There's nothing stopping you from putting your own pathfinder on top of the existing one, which I believe is hardcoded. For example, with followers the LUA scripts basically say "go to Y" and the .exe calculates a decent path. You could put your own code in there, so that you say "go first to X, then to Y".

 

See locomotor component and all the different behaviours for ideas. The pathfinder component, unfortunately, is in the .exe.

Edited by Heavenfall

A simpler solution might be to continuously track the movement of a certain prefab. If it is meant to be running but appears to stay in the same place, you could insert a shortcut where it travels in a sideways manner for x distance. Then, continue moving in the previous direction.

Or just disable collisions with world object while the follower is off screen so it can run to the leader in proper way, without getting stuck on a wall segment despite opening in wall one segment from it.

 

What pathfindig it is when pig get stuck on a wall segment next to opening in the walls?

Edited by _Q_

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...