Turok 2 Editor Kex Studio- How to make a door

Author: Sixty Four

Step 1:

Place a door actor on the map where you want the door to be. Select the door and right click- go to properties. Give the door a TID a number of your choice. (Give it a new tid that isn’t used anywhere on your map of course.)

Step 2:

Create two sectors underneath the door like the pic below. (This is so we can tag the sectors under the door as blocking sectors, so the player can’t go through. Since the door actor doesn’t have a matching blocking volume you will walk through them pretty much. SO this is up to the sector to block players.)

Right click the sectors and go to properties. Select ‘Block’ under the behaviors. Do not select Block Players.

Step 3:

Place an Action actor from the actors tab. Right click it and open properties. Go to the kexEventLinkComponent tab.

kexEventLinkComponent tab:

What you see first is a bunch of cases in which would trigger the actor. I’m going to choose “player enters region” as the example here.

Now scroll down and select ‘Actor Trigger On’

Now give it a targetTID (this TID should target your doors TID) This will make the Door open when this action is triggered.

Set your flags:

Flags: 2 (This flag seems to unblock sectors that are only located underneath the targeted door. Place your doors directly in the sectors that are blocked. If it isn’t located on the sector it won’t unblock it. There are many flags to enter here and this heavily decides your outcome with what you want to do.)

Since I chose “player enters region my action actor needs a sourceTID in which will trigger the action. In this case (picture below) when we step in the source sector/region TID #40 we targetTID # 41 (the door). You can use any numbers as long as they aren’t already used.

Right click the sector/region and go to properties scroll down and find TID. Give it a number and match it with your sourceTID from the action actor kexEventLinkComponent.

Now your action actor should have a green line leading from the source (sector region) to the target. And a yellow line that targets the door.

Your door should work when you step on the sector you gave a TID now. If it doesn’t be sure to go back and check on your kexEventLinkComponent properties.

 

Tags: , ,