ScriptEvent:getTargetTimerValue

From Mod Wiki

Parameters

integer handle -- Handle of the timer to look up.
entity (cannot be null) player -- Player to look up the timer on.

Result

float

Supported By

sdSysCallThread

Comments

  • Timers can be allocated using allocTargetTimer.
  • If the entity passed in is not a player, the result will be -1.
  • If the handle passed in is less than 0, the result will be 0.
  • If the handle passed in is out of range, the game will either crash or return garbage data.

Functionality

Returns the current value of a timer for the specified client.