Tommy is a down-on-his-luck garage mechanic, stuck in the middle on who-knows-where on some forgotten reservation, where Native Americans are tucked away out of sight, out of mind. And then the unthinkable happens! Earth becomes prey to the galaxy's largest predator, a space bound Texas-sized alien that's looking to satiate its hunger with the organic goodness that most populates Earth: Us. And the first course is a certain forgotten reservation. A Spiritual Awakening Tommy and his girlfriend have become prey, his grandfather killed, and hundreds of his tribal nation have been abducted through space-warping portals. Freeing himself, all Tommy cares about is saving Jenny. But the spirit of his grandfather beckons him to embrace his heritage, accept the ancient teachings, and prepare to battle the menace that threatens to destroy all the planet's life. It's a choice between love and responsibility.

Post tutorial Report RSS Portals tutorial

Portals are one of Prey's main features and also one of the easiest to use. The following tutorial will teach you how to take advantage of the different portal techniques used throughout Prey.

Posted by on - Basic Mapping/Technical

Originally written by 3D Realms and was previously available on their developer wiki. Mirrored here for archival purposes.

Note this tutorial's sample level is downloadable here.


Portals Tutorial

Portals are one of Prey's main features and also one of the easiest to use. The following tutorial will teach you how to take advantage of the different portal techniques used throughout Prey.

Glowportals

Glowportals are the main type of portal used throughout Prey. We mainly used them as your main path portals. (Player needed to go through them to advance through the game.) They were represented by an obvious orange glow around the actual portal.

To place a glowportal in your map you will need to add an object_glowportal.

1. Right-Click in your grid view and move up to the Object menu. Browse through the object and click on object_glowportal.

393px Portals1

2. Add another object_glowportal and this will serve as your destination.

3. Make sure that the portals are aligned with the floor. (Or whatever surface you want to align it to.) Glowportals can be angled to any surface, which means they can be sideways or upside down. The best way to make sure your portals are aligned is by selecting the Show Primitive Bounding Box tool from the toolbar.

Portals2

After you’ve made this selection you will notice a bounding box appears around the portal object. You will want to align this box to whichever surface you want it to be on, which is the floor in this case.

766px Portals3

4. Select your first portal and look under the Entity Class info in your Entity Browser. There are only 2 keys we are going to worry about in this tutorial. cameraTarget and startActive.

250px Portals4

5. Click on the key entry and type cameraTarget. Under value you need to put the name of the destination portal. In this case it should be object_glowportal_2.

6. After you have the cameraTarget key/value assigned add a startActive key with a value of 1.

Portals5

7. Your first portal is set up! Now you need to assign the same properties to your second portal, only with the cameraTarget being object_glowportal_1.

Rebuild your map and test it out! You now have a working glowportal.

450px Portals6

Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: