Documentation
IPS_GetScriptTimer
int IPS_GetScriptTimer (int $ScriptID)
Parameters
ScriptID | ID of the script |
Returns
Time in seconds that the script is called cyclicly (not the remaining duration)
Description
The function returns the start value of the script timer of the script with the ID ScriptID. The value describes the duration in seconds. The function can be used to check if the value is set correctly.
If the start value is 0, the timer is deactivated and there is no active timer for the script.
Example
$TimerValue = IPS_GetScriptTimer($ScriptID); // determines the value of the script timer