User Tools

Site Tools


prpl:getgametimeframes

Differences

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

Link to this comparison view

prpl:getgametimeframes [2016/12/02 18:33] – external edit 127.0.0.1prpl:getgametimeframes [2018/08/29 04:22] (current) – content GoodMorning
Line 1: Line 1:
 <- [[.:prplreference| PRPL reference]] <- [[.:prplreference#everything_else_2|Everything Else 2]] <- [[.:prplreference| PRPL reference]] <- [[.:prplreference#everything_else_2|Everything Else 2]]
  
-=====  GETGAMETIMEFRAMES  =====+=====  GetGameTimeFrames  =====
  
 ^Arguments^Result^Notation^ ^Arguments^Result^Notation^
-| | | [ - ] |+| | int | [ - Frames ] |
  
  
 === Description === === Description ===
 +Get the game-time (i.e. mission clock time) in frames. There are 30 frames to 1 second.
  
 === Examples === === Examples ===
-<code> stack.Push(new Data(GameSpace.instance.updateCount));  +<code> 
- + 
 +GetGameTimeFrames 30 mod eq0 if # Once per second. 
 +    "Frames:" GetGameTimeFrames Trace2 
 +    "Seconds:" GetGameTimeFrames 30 div Trace2 # Seconds on the game clock
 +endif 
 </code> </code>
  
prpl/getgametimeframes.1480721632.txt.gz · Last modified: 2016/12/02 18:33 by 127.0.0.1