BluesyBuesy Posted May 31, 2017 Share Posted May 31, 2017 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 https://forums.kleientertainment.com/forums/topic/79401-how-to-permanently-set-a-players-position-to-beneath-the-ground/ Share on other sites More sharing options...
CarlZalph Posted May 31, 2017 Share Posted May 31, 2017 (edited) @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 May 31, 2017 by CarlZalph Tagged. Link to comment https://forums.kleientertainment.com/forums/topic/79401-how-to-permanently-set-a-players-position-to-beneath-the-ground/#findComment-927192 Share on other sites More sharing options...
BluesyBuesy Posted May 31, 2017 Author Share Posted May 31, 2017 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 https://forums.kleientertainment.com/forums/topic/79401-how-to-permanently-set-a-players-position-to-beneath-the-ground/#findComment-927198 Share on other sites More sharing options...
Recommended Posts
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