Author Topic: .blb On stuck door event.  (Read 1973 times)

JVS had an event if you got stuck the door would re open. I need the exact same event if possible for the blb doors.

Code: [Select]
onActivate > Self > door > Open
onPlayerTouch > Self > door > Close (with delay of 100)
onPlayerTouch > Self > cancelEvents

I turned off collision when you open the door only but your event line doesn't fix when you get stuck in a door frame.

The point of those events is to stop the door from closing while someone is touching it. If you turn off collision, it doesn't work.

onPlayerTouch doesn't work with no collision

The point in the doors having frames is so that you can open the door if you get stuck in it. But I can see why you'd want this.

The point in the doors having frames is so that you can open the door if you get stuck in it. But I can see why you'd want this.

I'd rather not get stuck all together instead of awkwardly opening the door after I stuck myself.

I guess the kind of tricky part is seeing if they're actually stuck in one of the collision boxes of the door and not just within the bounding box of the brick. I guess you could read the blb file for the brick and then make a few box searches based on the sizes of the collision boxes defined in the blb file.

The new doors have a frame that is clickable.
You can use that when you are stuck.

Otherwise, maybe use a zone event.

I want to get unstuck without myself clicking the door though.

Someone could just make an event for it as well.
Package the door close/toggle/whatever function, do a box search for players, call the event if someone was found.

Keeps blb doors from closing while there are players within the bounds of the closed door.

Sticky Doors

Keeps blb doors from closing while there are players within the bounds of the closed door.

Sticky Doors
Keep in mind that this keeps the door open if they're within the bounds of the frame at all. Not if they would get stuck.

Yeah, there are some other problems I've only realized in retrospect.  It's possible to open a door in such a position that you're unable to move, but inside the box where it won't close the door.  I'll have to figure out how to make it not do that.

Yeah, there are some other problems I've only realized in retrospect.  It's possible to open a door in such a position that you're unable to move, but inside the box where it won't close the door.  I'll have to figure out how to make it not do that.
You could read the brick's blb file and do a few box searches based on the brick's collision boxes.