Lua API
On this page

SharedCooldown

classbase
Inherits from

Item use cooldowns

Fields:

ClientReceivedAt DateTime

read only

The datetime that the client recieved this cooldown from the server.

Duration number

read only

The total duration in seconds this cooldown should last for

ExpiresAt DateTime

read only

The datetime this cooldown will expire. All times are in UTC. Formula is: (Duration 0) ? DateTime.MaxValue : ClientReceivedAt + TimeSpan.FromSeconds(Duration) - TimeSpan.FromSeconds(StartTime)

Id number

read only

The shared id of this cooldown. Get an objects SharedCooldownId with IntId.SharedCooldown

LayeredId LayeredSpellId

read only

The full layered id of this cooldown

ObjectId number

read only

The id of the world object that triggered this cooldown

StartTime number

read only

The time in seconds that the cooldown has been active before we heard about it from the server.

Methods:

GetPropertyKeys() : string[]

Returns a list of strings of all public property / field names. Useful for reflection on UserData in lua scripts

Returns:string[]

ToString() : string

Returns a string that represents the current object.

Returns:string