kts.OpenDoor

Name

kts.OpenDoor – open a door or chest tile

Synopsis

result = kts.OpenDoor(pos)

Description

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.

Return Value

No value is returned.

Errors

If pos is not a valid map position then an error is raised.

Notes

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.

See Also

cxt

kts.MISC_CONFIGdoor_closed_damage is set here

kts.CloseDoor

kts.IsDoorOpen

kts.OpenOrCloseDoor

kts.Tile