Mapping and modding for Crysis and the Sandbox 2 editor.
Rating:
ForbiddenArea Tutorial
2007-11-06 07:29:22
P.C.Invasion shows us how to setup your map boundaries with the forbidden area entity.
Step 1
Create your terrain
Create a basic terrain.
There are several tutorials on the internet to show how to set up a basic level. I will not be covering any of these initial steps. This tutorial assumes you have at least gone this far.
You can download an example of the completed tutorial map from here.
Step 2
Define Your Boundary
In this tutorial, I will set the area surrounding the lake in the center of my terrain as the forbidden area. Players that enter this area will get a warning to turn around.
Step 3
Draw AreaShape
On the RollupBar, select the Objects icon, (Looks like a pointing hand). Next, select the Area button. When you do this, you will be presented with several items below in the ObjectType menu area.
Click on Shape, just once. No dragging!
You will notice that immediately after clicking Shape, the menu will expand, (Shown within the yellow box). This happens because as soon as you click Shape the AreaShape is created and ready for you to draw out in the Perspective area, (The area where you can see your terrain.) Don't drag your mouse. Just move out to the Perspective area and start left clicking your way around the area you want as your boundary.
By default, as you move around, you will see your shape automatically creates a closed in area. To finish the AreaShape, just double click.
Step 4
Place ForbiddenArea Entity
Press Esc key to deselect the AreaShape.
Go back to the RollupBar. Again, select the Objects icon. Next, select the Entity button. When you do this, you will be presented with several items below in the Browser menu area. Scroll down and find the Multiplayer folder icon in the menu. Double click to expand this folder icon.
Find the ForbiddenArea icon from the list.
Left click and drag this out into the Perspective view area. In this tutorial, I've positioned the entity outside of, and above, the AreaShape perimeter. (I'm assuming that you already have a basic understanding of how to move items around in your level.)
Step 5
Linking AreaShape to ForbiddenArea Entity
Press Esc key to deselect everything.
We need to link the AreaShape to the ForbiddenArea entity. We will do this from the Objects dialog.
On the toolbar, select the Select Object(s) icon. This will open a separate window showing the objects in your level.
In the Object dialog, left click to highlight Shape1.
In the Object dialog, click the Select button.
To the right on the RollupBar, scroll down to the Target area on the menu. Click the Pick button.
Don't click anything else. Just move on to Step 6.
Step 6
Linking AreaShape to ForbiddenArea Entity (Cont.)
With the Object dialog still open, highlight ForbiddenArea1.
In the Object dialog, click the Select button.
You will notice in the RollupBar, the Target area for the AreaShape has been assigned a link to the ForbiddenArea1 entity.
Finished
Finished.
Notice the line connecting the two objects. Hit Ctrl+G to go into Game to test it out.