User Tools

Site Tools


prpl:getgametimeframes

This is an old revision of the document!


<- PRPL reference <- Everything Else 2

GetGameTimeFrames

ArgumentsResultNotation
int [ - Frames ]

Description

Get the game-time (i.e. mission clock time) in frames. There are 30 frames to 1 second.

Examples

GetGameTimeFrames 30 mod eq0 if # Once per second.
    "Frames:" GetGameTimeFrames Trace2
    "Seconds:" GetGameTimeFrames 30 div Trace2 # Seconds on the game clock.
endif 
prpl/getgametimeframes.1535530973.txt.gz · Last modified: 2025/02/14 14:56 (external edit)