Jump to content
Mr.Someone

Disabling Freefall animation

Recommended Posts

Hi

 

I am currently working on a mission that has a teleport point to a high place.

the problem with that is that when i teleport to that high place the player spawns with a static freefall animation and only after a couple of seconds it corrects itself to there being a floor object underneath

AI on the other hand don't experience that. I was wondering if and how i can prevent that from happening

 

Thanks!

Share this post


Link to post
Share on other sites

Maybe disableSimulation for a short while ?

Share this post


Link to post
Share on other sites
1 hour ago, Mr H. said:

Maybe disableSimulation for a short while ?

How would i go about doing that?

Share this post


Link to post
Share on other sites

Well, line before setting players new position, enableSimulation false and line after the "teleportation", enableSimulation true should do the trick.

Share this post


Link to post
Share on other sites
17 hours ago, Mr.Someone said:

How would i go about doing that?

 

 

Try this in your teleport script. Adjust the sleep command as needed. 

 

 

player enableSimulation false;

 

sleep 1;

 

player enableSimulation true;

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×