Flusap Posted January 19, 2021 Share Posted January 19, 2021 Hey guys, I have an object that I want to face the same way the player is facing. And I'm not quite sure how to do that. I did Transform:SetFourFaced() and set up the anim to have 4 sides, but I'm not sure how to have it mimic the player. Any tips? Link to comment https://forums.kleientertainment.com/forums/topic/126252-how-do-i-check-in-script-which-way-the-player-is-facing-relative-to-the-camera/ Share on other sites More sharing options...
Thomas_klei Posted January 19, 2021 Share Posted January 19, 2021 local rotation = inst.Transform:GetRotation() object.Transform:SetRotation(rotation ) Link to comment https://forums.kleientertainment.com/forums/topic/126252-how-do-i-check-in-script-which-way-the-player-is-facing-relative-to-the-camera/#findComment-1418314 Share on other sites More sharing options...
Flusap Posted January 19, 2021 Author Share Posted January 19, 2021 Ohhhh thank you! 1 Link to comment https://forums.kleientertainment.com/forums/topic/126252-how-do-i-check-in-script-which-way-the-player-is-facing-relative-to-the-camera/#findComment-1418338 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