FPS Creator Tutorial: Open Door Segment

James Cloud
Introduction

Most, if not all, FPS Creator stock door segments spawn closed. This is contrary to the nature of map design in most pc computer games. The majority of games will have a pre-opened door at some point and in several levels. The fact that this is not a stock, built in, or pre-scripted feature in FPS Creator is strange, but this tutorial will show you how to achieve an already opened door with any door segment.

Part One - Script Creation

In order to make a door open upon spawn requires the creation of a simple script which will be called in the door segment. Simply navigate to your FPS Creator script bank directory( the default is: C:\Program Files\The Game Creators\FPS Creator\Files\scriptbank), right click a blank area, and create an empty text file. Once the file is created open it in notepad and type or copy and paste in the following script code:

;Artificial Intelligence Script
;Header
desc = Automatically Open Door Entity on Spawn
;Actual Script Code
:state=0,plrwithinzone=1:activateifused=1,destroy
;End of FIle

Save the file and rename it to OpenDoor.fpi.

Part Two - Using the Script

Now that the required script has been created you can incorporate it into your level. Start up FPS Creator, load or create a level, and add your desired door segment. Right click on the door segment to bring up its properties and change its name to something you can easily remember. The next step is to place a trigger zone where the player start zone is. In the trigger zones properties set the If Used property to the what you named the door and set the Main property to the script you created earlier, OpenDoor.fpi.

Whenever the player enters this type of trigger zone the specified door will automatically open. Hence, if you place the trigger zone on the player start, the door will open when the game begins.

Published by James Cloud

I like to program and do basically anything that has to do with technology and computers.  View profile

To comment, please sign in to your Yahoo! account, or sign up for a new account.