Jump to content

How to permanently set a player's position to beneath the ground


Recommended Posts

I'm trying to set a player's position to beneath the ground, but something is reverting the player back to its original location in the next frame. 

ThePlayer.Transform:SetPosition(0,-5,0)

I can't find where Transform is defined. Is it on the C++ side? Any workaround for this? 

Link to comment
Share on other sites

@BluesyBuesy

ThePlayer.Physics:SetActive(false)

You won't be able to move until Physics is active again, though.

So really only useful if you want the player to burrow and hide them/show some fx at the surface without letting them move.

Edited by CarlZalph
Tagged.
Link to comment
Share on other sites

6 minutes ago, CarlZalph said:

@BluesyBuesy


ThePlayer.Physics:SetActive(false)

You won't be able to move until Physics is active again, though.

So really only useful if you want the player to burrow and hide them/show some fx at the surface without letting them move.

Sweet. It's for a short video clip where the camera follows the player gradually descending into the ground, so that works perfectly. Thanks man. 

Link to comment
Share on other sites

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
 Share

×
×
  • Create New...