This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| prpl:ispaused [2016/12/02 23:33] – external edit 127.0.0.1 | prpl:ispaused [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| <- [[.: | <- [[.: | ||
| - | ===== | + | ===== |
| ^Arguments^Result^Notation^ | ^Arguments^Result^Notation^ | ||
| - | | | | [ - ] | | + | | | Paused? |
| === Description === | === Description === | ||
| + | Returns whether the game is paused or not. Only relevant for units which use OperateWhilePaused. | ||
| + | |||
| + | Note that CW3 had a rare bug where OperateWhilePaused could be spread to other Cores - this was often used to fix that issue. This bug has not been observed in PF. | ||
| === Examples === | === Examples === | ||
| - | < | + | < |
| - | + | IsPaused if #If the game is paused, perhaps run some display or UI code, but don' | |
| + | return | ||
| + | endif | ||
| </ | </ | ||