Workshop.codes
Create

Start Damage Over Time Last updated November 26, 2024

Description

Starts an instance of damage over time. This DoT will persist for the specified duration or until stopped by script. To obtain a reference to this DoT, use the Last Damage Over Time ID value.

Snippet

Start Damage Over Time(Event Player, Null, 0, 0);

Properties

Returns: Void
Parameters: Player, Damager, Duration, Damage Per Second

Player
Type: Player | Array (Player), Default: Event Player
One or more players who will receive the damage over time.

Damager
Type: Player, Default: Null
The player who will receive credit for the damage. A damager of null indicates no player will receive credit.

Duration
Type: Float, Default: Number
The duration of the damage over time in seconds. To have a dot that lasts until stopped by script, provide an arbitrarily long duration such as 9999.

Damage Per Second
Type: Float, Default: Number
The damage per second for the damage over time.

Workshop.codes