Appearance
twine / EntrancesTrigger
Interface: EntrancesTrigger โ
Defined in: twine/src/core/area.ts:52
A room entered through doorways, for places too irregular or overlapping to bound.
A player is in the room from walking into one of its zones until they walk into another room's in the same group, or something calls <name>/place as them. The area is on while anyone is in it. Walking in runs onEnter as the player.
Membership is a per-player score in the objective named group, so a pack can copy it (to restore it on respawn, say). Entry is armed by location advancements; a dormant room still costs one if entity per tick, since the score can change without an entrance.
Properties โ
group? โ
optionalgroup?:string
Defined in: twine/src/core/area.ts:56
Rooms sharing a group are exclusive per player. Also the objective's name. Default room.
kind โ
kind:
"entrances"
Defined in: twine/src/core/area.ts:53
zones โ
zones:
Zone[]
Defined in: twine/src/core/area.ts:54