Is it possible to make an actor that acts when the game is paused?

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Heisanevilgenius
Posts: 123
Joined: Wed Dec 15, 2021 8:38 pm
Graphics Processor: nVidia (Modern GZDoom)

Is it possible to make an actor that acts when the game is paused?

Post by Heisanevilgenius »

I remember reading something on the wiki about ways Zscript can interact with the game being paused but I'm having a hard time finding it. Can you have decorations that animate while the game is paused? Can you have enemies do special actions when the game is paused?
User avatar
m8f
 
 
Posts: 1524
Joined: Fri Dec 29, 2017 4:15 am
Preferred Pronouns: He/Him
Location: Siberia (UTC+7)

Re: Is it possible to make an actor that acts when the game is paused?

Post by m8f »

You can read information about the level and enemies in UI scope. See void UiTick, PostUiTick, RenderOverlay, RenderUnderlay in https://zdoom.org/w/index.php?title=Events_and_handlers
Heisanevilgenius
Posts: 123
Joined: Wed Dec 15, 2021 8:38 pm
Graphics Processor: nVidia (Modern GZDoom)

Re: Is it possible to make an actor that acts when the game is paused?

Post by Heisanevilgenius »

Thank you. This is very difficult to understand but I'm reading up on it and hopefully I'll figure it out :)

Return to “Scripting”