This can be improved by using something like this:
Code: Select all
EntityParent Collider,Elevator_object
- The elevators won't be limited to vertical movement if this implementation is used. You can move them around as much as you like, and in any direction, and they will still work properly.
- The disk space needed for elevators may be slightly reduced.
- Items and NPCs can be transported in these elevators if you use EntityParent with those.
- You won't be able to fall out of the elevator by walking along the walls.
- It's probably easier to implement.
I can only think of one disadvantage:
- The position, rotation and state of the elevators will need to be saved, which uses up a few more bytes per save.