Skip to content

LogoutDelay

class LogoutDelay() : Component()
Example
on_npc_option(Assets.Npc.goblin.id, "Attack") { player ->
val delay = player.findComponent<LogoutDelay>() ?: LogoutDelay().also { player.addComponent(it) }
delay.bump(10)
target.showHitsplat("damage", 1, source = player as? Actor)
}
val active: Boolean
fun bump(cycles: Int)