User Tools

Site Tools


pf:rpldocs:timers
timers.txt
=CMD
=COMMAND GetTimer0
=DESC 
Gets the current value of timer 0. Timers are set to some value, and then decrease by 1 each game frame (even if the core is in a Delay).
=ENDDESC
=EX 
if (GetTimer0 eq0)
	trace(GetUpdateCount)
	SetTimer0(30)
endif
=ENDEX
=ENDCMD

=CMD
=COMMAND GetTimer1
=DESC 
Gets the current value of timer 1. Timers are set to some value, and then decrease by 1 each game frame (even if the core is in a Delay).
=ENDDESC
=EX 
if (GetTimer1 eq0)
	trace(GetUpdateCount)
	SetTimer1(30)
endif
=ENDEX
=ENDCMD

=CMD
=COMMAND GetTimer2
=DESC 
Gets the current value of timer 2. Timers are set to some value, and then decrease by 1 each game frame (even if the core is in a Delay).
=ENDDESC
=EX 
if (GetTimer2 eq0)
	trace(GetUpdateCount)
	SetTimer2(30)
endif
=ENDEX
=ENDCMD

=CMD
=COMMAND GetTimer3
=DESC 
Gets the current value of timer 3. Timers are set to some value, and then decrease by 1 each game frame (even if the core is in a Delay).
=ENDDESC
=EX 
if (GetTimer3 eq0)
	trace(GetUpdateCount)
	SetTimer3(30)
endif
=ENDEX
=ENDCMD

=CMD
=COMMAND SetTimer0
=DESC 
Sets the current value of timer 0. Timers are set to some value, and the decrease by 1 each game frame (even if the core is in a Delay).
=ENDDESC
=EX 
if (GetTimer0 eq0)
	trace(GetUpdateCount)
	SetTimer0(30)
endif
=ENDEX
=ENDCMD

=CMD
=COMMAND SetTimer1
=DESC 
TODO
=ENDDESC
=EX 
if (GetTimer1 eq0)
	trace(GetUpdateCount)
	SetTimer1(30)
endif
=ENDEX
=ENDCMD

=CMD
=COMMAND SetTimer2
=DESC 
TODO
=ENDDESC
=EX 
if (GetTimer2 eq0)
	trace(GetUpdateCount)
	SetTimer2(30)
endif
=ENDEX
=ENDCMD

=CMD
=COMMAND SetTimer3
=DESC 
TODO
=ENDDESC
=EX 
if (GetTimer3 eq0)
	trace(GetUpdateCount)
	SetTimer3(30)
endif
=ENDEX
=ENDCMD
pf/rpldocs/timers.txt · Last modified: 2016/10/16 17:50 by Karsten75