User Tools

Site Tools


prpl:ispaused

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
prpl:ispaused [2016/12/02 23:33] – external edit 127.0.0.1prpl:ispaused [2025/02/14 14:57] (current) – external edit 127.0.0.1
Line 1: Line 1:
 <- [[.:prplreference| PRPL reference]] <- [[.:prplreference#everything_else_2|Everything Else 2]] <- [[.:prplreference| PRPL reference]] <- [[.:prplreference#everything_else_2|Everything Else 2]]
  
-=====  ISPAUSED  =====+=====  IsPaused  =====
  
 ^Arguments^Result^Notation^ ^Arguments^Result^Notation^
-| | | [ - ] |+| | Paused? | [ - bool ] |
  
  
 === 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 ===
-<code> stack.Push(new Data(GameSpace.instance.paused ? 1 : 0));  +<code> 
- +IsPaused if #If the game is paused, perhaps run some display or UI code, but don'(say) move or shoot
 +return 
 +endif
 </code> </code>
  
prpl/ispaused.1480721632.txt.gz · Last modified: 2025/02/14 14:56 (external edit)