My first: Teleporter

From Divinity Engine Wiki
Jump to: navigation, search

Creating a teleport from one location to another

1) Place a source item object. For example, if you are making a transition from one floor to another you can use a hatch or ladder.

Place a hatch

I will use 05m_HouseFarm_A_Hatch_A_Item root template. You generally can use any interactive (non-scenery) item as a teleporter. But you can make most of the scenery items interactive.

2) Look for Item State section in item properties. We are interested in Use Actions property. To be able to teleport party item need to have Teleport action. You can change default use action of item (for instance Doors have Open use action, which can be removed and replaced with Teleport action if we want to use the door as teleporter).

Hatch use action

3) We need to specify the target of our teleportation. The target can be any interactive game object but for such thing, as a ladder, the most sense makes to make a trigger that will serve as a target. We can use PointTrigger or TeleportTrigger as targets. They have a minimal difference but TeleportTrigger allows to specify the camera angle after teleport which is nice if you want to avoid player looking into the wall on arrival.

Warningred.png
Make sure to follow the correct naming convention for this target object (name should start with S_), otherwise it may not show up in the list of selectable target objects).
Create a target object

I will place TeleportTrigger to serve as a target for teleport.

4)
Specify teleport target
  1. Open Use Actions pane
  2. Click Target property to open Select Global object... pane (name need to be fixed, it does not need to be global anymore unless you are teleporting to object in another level)
  3. Select type - Trigger in my case
  4. Select level in the drop-down - DR_Arena_A in my case
  5. Select Trigger game object.

5) Click Apply and Apply again. We created you first teleported. You can save and go to game mode to try it out.