kts.OpenDoor – open a door or chest tile
result = kts.OpenDoor(pos)
If there is a door or chest tile at position pos
, then this function will open it (if it is not already open).
Otherwise, this function does nothing.
No value is returned.
If pos
is not a valid map position then an error is raised.
Opening a door or chest will trigger any trap that has been set on it.
This function reads originator
from the cxt table, in order attribute any kills that result from a triggered trap.
kts.MISC_CONFIG – door_closed_damage
is set here