Page 1 of 1

How to stop player walk animation for cutscene?

PostPosted: Sat Apr 03, 2021 8:02 am
by Henry Hittinggold
I'm currently toying around with a cutscene that triggers on item pickup and then is supposed to freeze the player and show him from the outside by changing the camera. While I was able to technically freeze the player with Thing_Stop(playerTid) and SetPlayerProperty(playerTid, TRUE, PROP_TOTALLYFROZEN), I noticed that the actor is still playing its walk animation continuously. This, of course, looks rather goofy. Is there a way to stop the walk animation without swapping the player with a dummy actor?

Re: How to stop player walk animation for cutscene?

PostPosted: Sat Apr 03, 2021 8:41 am
by Nigel Drapperwater
You could try using SetActorState:
https://zdoom.org/wiki/SetActorState
Just set the player's state to Spawn and it should work, I think.

Re: How to stop player walk animation for cutscene?

PostPosted: Sat Apr 03, 2021 9:19 am
by Deathmatcher
This works like a charm! Thank you. (Forgot to login when posting the question, hence the Henry Hittinggold alias)