Posted by CogKing on January 09, 1998 at 23:48:52:
In Reply to: To Stealth and CogKing posted by Dave on January 09, 1998 at 14:05:48:
> 2)About the doors and cogs - Is making a door that needs a key to open as easy as making a doorway, then making that doorway into an actual sector itself (like you all already taught me before) and placing the cog on that sector? In short, what is the easiest way to make a sliding door, that uses the doorkey cog?
Doors (actually ALL moving things) are 3DOs, not sectors.
Simply put a door object in your corridor, and set another frame of that
object at the opened position (look at a JKL for an example of frames).
Now, it is BETTER if you have a sector that is the size of the door or
a bit smaller. Why ? Because in your door script you can remove the
adjoins of that door sector when the door is closed. This has many
advantages :
1) it makes your scene faster because the engine doesn't try to render what's behind the door
2) it does make the AI behave as it should, else they sometimes try to fire at you across the door
3) it doesn't draw the map of what is behind the door before it has been opened.
All in all if the adjoins have been removed in the doorsector the game behaves as if the door really was a solid wall !
-cogKing