Jump to content

Custom Shaped Script Zones


moonsense715

Recommended Posts

Author: moonsense715

Skill level: 2

 

 

This tutorial will show you how to create a custom shaped script zone because inside LevelEdit you can only create box shaped ones.

In Reborn, this technique is used to define underwater zones and areas where Sub-APCs and Devils Tongue vehicles can not dig/surface.

 

 

1. Create the zone model

 

Launch GMax-RenX or 3ds Max.

Create a model that will be the shape of your script zone. It must be a convex shape. The faces can look inwards or outwards it does not matter. Here's mine:

zone_model.jpg

Tick Physical at Collision Options (Utilities tab -> W3D Tools).

 

If your custom shaped zone is map specific, you must position it perfectly in 3d space to where it should be on your map. For example, I made an underwater zone and positioned it at the lake:

zone_position.jpg

 

Now export this single zone model (hide/delete everything else in the scene) as W3D format, Terrain type.

 

 

2. Add the zone in LevelEdit

 

In LE, browse down to Object -> Script Zone, and Temp that or any other zone you prefer to copy initial settings from.

Name it then switch to the Settings tab.

Browse your script zone's model at ModelName and point it to the zone w3d file you just exported:

zone_settings.jpg

 

The rest of the settings is up to you, along with the scripts tab if you wish to add extra script effects. Note that if CheckStarsOnly is enabled, the zone will only affect players and not bots. Up to you to tick it or not.

 

Hit OK to finish creating/modding the script zone.

 

 

3. Placing the script zone

 

Place the script zone by clicking Make.

Set its position to the origin of the map by double clicking on the zone, going to the Position tab and changing the x, y, and z positions to 0. Then click OK.

You don't need to change its rotation or size, the shape that appears when you hit Make will be replaced by the custom shape you created earlier.

 

Have fun with your new custom shaped zone :) 

 

 

 

 

Note: from engine version 5.0 onwards, custom shaped script zones can be moved away from the origin (0,0,0) world location. This means they can be proxied by buildings and are not restricted to be exported individually on every map when buildings want to use them.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...