Other great resources: Official JS API docs, Scripting Forum
setBurnTime()
Define how long units burn for when they catch fire...
Syntax
setBurnTime(player, time);Parameters
Parameter | Type | Mandatory | Notes | Game Version |
|---|---|---|---|---|
player | Number | The player who's burn time should be changed. | 3.2 | |
time | Number | The amount of time, in milliseconds, that the player's objects burn for when they catch fire. | 3.2 |
Return values
Value | Type | Notes | Game Version |
|---|---|---|---|
3.2 | |||
<error> | Error | Invalid parameters. | 3.2 |
Example
// standard burn time is 10 seconds
setBurnTime(me, 10000);