Jump to content

moveto bug - a solution that works


lgpmichael

Recommended Posts

I have been suffering for the last couple of days under a problem with the setpos bug where moving from water to a point not on water always leaves the actor swimming.

 

A number of solutions have been mentioned by people that work 'most of the time' (using fake doors as an example, works sometimes but not always).

 

Thankfully I think I have found a 100% solution for this to work now.

 

Instead of using setpos to move the actor to where I want it, I instead move it to a secondary point, which is a simple piece of floor hidden away somewhere. The swimming always stops when the actor intersects a floor, so make the appearance point be such that the actors feet are touching, or even a tiny bit below the floor.

 

Set around this point a trigger which detects if the actor IsSwimming, and as soon as they are not, which is, after extensive testing, always within at most one or two frames, then setpos them to the correct location they needed to go to.

 

This solution will allow you to setpos from in the water to anywhere, in the air, on the land, whatever you need, and the swimming mode is always fixed.

 

Hope this helps some people, as it messed me around for ages until I came up with a 100% reliable solution*

 

 

 

* (100% reliable in over 50 tests in different situations)

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...