Transparency
class Transparency(alpha: Int = 0) : Component()on_npc_option(Assets.Npc.goblin.id, "Banish") { player -> val alpha = target.findComponent<Transparency>() ?: Transparency().also { target.addComponent(it) } alpha.fade(to = Transparency.INVISIBLE, overCycles = 100)}var alpha: Intfading
Section titled “fading”val fading: Booleanfun fade( to: Int, overCycles: Int, from: Int? = null)onComponentRemovedFromEntity
Section titled “onComponentRemovedFromEntity”override fun onComponentRemovedFromEntity()OPAQUE
Section titled “OPAQUE”const val OPAQUE: Int = 0INVISIBLE
Section titled “INVISIBLE”const val INVISIBLE: Int = 255MAX_CYCLES
Section titled “MAX_CYCLES”const val MAX_CYCLES: Int = 0x7FFF