Restrictors are volumes that can be set as obstacles, triggers, and zones.
For Obstacles: it can be used to create invisible walls to block the player.
For Triggers: they can be used with a VS to activate something when the player, or an AI, enters/leaves it.
For Zones: it can be set up as special pre-programmed zone areas (see more below).
Placement and Setup:
There are several ways of adding a restrictor to your level:
- Look for General → Restrictor in the Entities Toolbar.
- Look for Restrictor in the Entity List Window.
- By using the Shortcut "R + LMB" on the level.
A restrictor looks like a green transparent cube at the scene. If it's set as an obstacle, then it is blue.
| |
---|
Base | The name of a restrictor. Recommended: res_restrictorname. |
Type | Allows you to select a shape of the restrictor (Box or Sphere). |
Obstacle | Allows you to set the restrictor as an obstacle (e.g. the classic invisible wall). |
Zone Type | Allows you to select a zone type(s) for the restrictor. This allows iterations with the player. Examples: Fire: The player will take fire damage. Radiation: Over time, the player will receive damage. Gas: The player will receive damage if they don't have a gas mask with usable filters. Water Death: Drown zones for water. Movement Water: Slows the player while they move through water. Super Slope: Makes the player slide down the terrain. |
Zone Filter Enabled
Restrictors can check entities before collision using zone types. To do this, you need to set the right restrictor type and set the flag "Zone Filter Enabled". Then put the corresponding type into the entity. You can select and combine several types.
Restrictor Scaling
After a restrictor is created, it can be resized in two ways.
Entering Exact Values
To specify exact dimensions of the restrictor, enter desired values in the X, Y, Z fields in the Shapes → Half Size section of the Properties panel.
The entered values correspond to half of the restrictor’s dimensions, i.e. to make a restrictor with a side 1m long, enter 0.500 (0.5 m).
Scaling in Scale Mode
To enter the scale mode, press the Scale button in the Mode menu or use the H key.
In this mode, the restrictor can be scaled by moving one of its three visible faces.
Place the mouse pointer over the face (it will be highlighted with a lighter color) and, while holding the left mouse button, move it.
It is also possible to scale (stretch) the restrictor by moving two faces simultaneously.
If the coordinate axes are outside of the restrictor, place the pointer over the axes and, while holding the left mouse button, move the mouse.
Shape
Type – geometric shape of the restrictor. Box or Sphere, self-explanatory.
PhysX
- Obstacle – when enabled, the restrictor becomes an obstacle for the player.
- Force Sliding – enabling this option makes the restrictor “slippery” for the player. If the restrictor is located at an angle to a horizontal plane, the player will slide down from it.
- Collision group.
Zone Type
The effects the sector has on the player.
- Fire – the player takes fire damage.
- Radiation – the player takes radiation damage.
- Gas – the player takes damage from the poison gas.
Creating complex shape restrictors
The shape of a restrictor can be changed by appending a shape type object to it.
To append a shape to a restrictor, select the shape, then right-click the restrictor. From the popup menu, select Highlighted → Zone: Append Selected Shape to Restrictor.
This will make the shape a part of the restrictor and a new object will appear in the Shapes section of the restrictor’s properties. The PhysX and Zone Type restrictor properties can be edited via the last attached shape.
To disconnect all shapes from a restrictor, right-click the restrictor and select Highlighted → Zone: Append Selected Shape to Restrictor from the popup menu.