akrram Posted October 18, 2017 Share Posted October 18, 2017 Hi all, I am quite new to modding. I am trying to create a small script that allows me to go from one camera position to another, while game is paused. When I set GAMEPLAY::SET_GAME_PAUSED(true), next frame is not getting rendered (by research on this forum, it looks like i am not alone on this). I also tried taking screenshot, rendering next scene in one tick and taking next screenshot in next tick. But this makes the two screenshot lag by one frame. Which makes lot of difference when entities with high speeds are involved (bullet etc). I have tried slowing down the system by using GAMEPLAY::SET_TIME_SCALE(0.0f), but it does not make much difference. What am I missing here? Is there an existing mod for this? (pause the game and move camera around) Any hint/help is greatly appreciated. Link to comment Share on other sites More sharing options...
akrram Posted October 25, 2017 Author Share Posted October 25, 2017 Hey guys, Nevermind. I solved this problem. Link to comment Share on other sites More sharing options...
Cuky Posted October 26, 2017 Share Posted October 26, 2017 Hi akrram, do you mind sharing your solution with us? jedijosh920 1 Link to comment Share on other sites More sharing options...
akrram Posted November 20, 2017 Author Share Posted November 20, 2017 Hi Cuky, First, I apologise for delayed reply. I was busy with other work. The solution actually was quite simple. It worked with GAMEPLAY::SET_TIME_SCALE(0.0f). The trick is though, you should do the GAMEPLAY::SET_TIME_SCALE(0.0f) one frame before you want to take screenshots. After that, though game still runs, movement is negligible for next three frames. I hope this helps. Please let me know if you want me to post implementation. Thanks and regards, Link to comment Share on other sites More sharing options...
Cuky Posted December 1, 2017 Share Posted December 1, 2017 Hi akrram, thanks for your reply. I'm already using this method, but I'm also looking for a solution without movement between frames, even if it is very small. Link to comment Share on other sites More sharing options...
yt1024 Posted July 6, 2018 Share Posted July 6, 2018 Hi Cuky, Have you ever found a solution to absolutely pause the game? Link to comment Share on other sites More sharing options...