GetTimerExecuteTimes Shared function

From Gothic 2 Online: Wiki
Jump to navigation Jump to search

This function was added in version: 0.0.0

NOTE! Timers are responsible for performing specific code, after specified time.

Get current timer execution times. Execution times is a number of timer calls, that will be executed.

Syntax

int getTimerExecuteTimes(int id)

Required Arguments

  • id: The id of the timer

Returns

Timer execution times.

Example

local id = setTimer(function()
{
	print("i like G2O");
}, 1000, 5);

print(getTimerExecuteTimes(id)) // this will print 5

Related functions