Temporarily Unaccessible movable section

Started by , Thu 12/01/2006 12:27:41

Previous topic - Next topic

BadBoyZ

I have a room with two moveable sections, one to the left of a gate and one to the right. The character should only be able to walk freely on both after opening the gate with a key. What's the best way to prevent the character from reaching the left section?

Currently I'm using a region with a "move unto" script which checks against a global variable and moves the character back a pace or two. Is there a better way?

Khris

You can disable/enable walkable areas.
RemoveWalkableArea(x); // player isn't able to walk on area x any longer
RestoreWalkableArea(x); // player can walk there again

SMF spam blocked by CleanTalk