SubSpace
Revision as of 01:33, 2 September 2009 by imported>SpookyFX
- Subspace
- Subspaces are used to solve the problem of disconnected areas in the world space. Normally an actor will attempt to find a path in the world space that gets him to his destination. However, if there is no path, and the destination is in that same world space, the actor will not "think" to use load doors.
- For example, a house with a balcony needs a subspace to encapsulate the balcony. An actor on the balcony has no linked path grid to get to the street. Yet since the street is in the same world space, the actor makes the invalid assumption that such a path should exist. By surrounding the balcony with a subspace object, the actor sees the balcony and the street as being in two different world spaces. Now when he attempts to find a path to the street, he will assume that he has to go through one or more load doors.
- Under normal pathing routines, the actor will not cross a subspace boundary, even if a pathgrid exists or a direct open area exists that would let him. The exception to this is combat. In combat, an actor that is close to his target will move in a straight line toward his target, ignoring path grids and subspace boundaries.
- Make sure the subspace is placed to include all of the ground where an actor could stand in the area. If the ground is not included in the subspace, an actor standing on that ground may not realize they are in the subspace.
- Also make sure that the teleport doors in the area have their pivot point in the subspace (the reference dialog box can give you this information). If a door does not think it is part of the subspace, it will not be used for pathing into and out of that space.
- Subspaces can also be used as a means of making actors ignore behavior that would normally occur, such as detection, combat pathing, or reacting to attacks. An actor placed in normal space will ignore anything that happens within a subspace. An actor that is within a subspace will ignore everything outside that subspace. Actors may however cross subspace boundaries if they are currently in combat and the target lies within the same space.
SubSpaces can be found under Miscellaneous > SubSpace in the Object Window.
Once you place the blue subspace box in the render window you will not be able to move it or rotate it until you "solidify" it. Do this by going to the select view menu and then selecting "Solid Subspaces".
Advanced Usage
Subspaces can also be used in scripting by making them persistent and named references. Although they do not react to enable/disable functions, they can be moved into and out of place using setpos type functions. This can allow you to move a subspace over an area you want to enclose for the purposes of preventing NPC movement or reaction, and then move it back to allow normal NPC movement through that area.