Interpolation points
Interpolation points are used to create a curve along which to move an actor. Commonly used with cutscenes/cinematics.
Note
For making cutscenes where no player interaction is involved, use CameraPoint
instead.
Creating a path
- Add a
Keypoint > InterpolationPoint
actor to your map. - In the properties, set the
Events > Tag
toMyPath
. - Create a copy of the
InterpolationPoint
and place it somewhere else. - In the properties, change the
InterpolationPoint > Position
to 1. - Create another copy and set its position to 2.
- Still in the properties dialog, set
bEndOfPath
toTrue
. - Rotate each point according to which way you want the actor facing along the curve.
Note
The points only influence the curve indirectly. If you want tighter control of the shape of the curve, you can place points closer together.
Linking an actor to a path
Open the actor's properties and set Events > Event
to MyPath
.
Starting the interpolation
With InterpolationTrigger
If you want the interpolation to happen during gameplay.
- Place a
Triggers > InterpolateTrigger
in your map. - In the properties, set
Events > Event
to theEvents > Tag
of your actor.
The order of events will be this:
- Player touches trigger.
- Trigger emits event "MyActor".
- Actor tagged as "MyActor" emits event "MyPath".
- Interpolation points tagges as "MyPath" take control of the actor.
Here is a little diagram that shows how things are connected:
InterpolationTrigger ┌─── "MyActor"
└─ Events │ ┌─ "MyPath"
└─ Event ────────────────┤ │
│ │
MyActor │ │
└─ Events │ │
├─ Event ────────────────│─┤
└─ Tag ──────────────────┘ │
│
InterpolationPoint0 │
├─ Events │
│ └─ Tag ────────────────────┤
└─ InterpolationPoint │
└─ Position = 0 │
│
InterpolationPoint1 │
⋯ │
│
InterpolationPoint2 │
⋯ │
│
InterpolationPoint3 │
├─ Events │
│ └─ Tag ────────────────────┘
└─ InterpolationPoint
├─ bEndOfPath = True
├─ Position = 3
└─ RateModifier = 0.0
With a MapExit
If you want the interpolation to control the camera during a transition at the end of a mission.
- Place a
MapExit
actor in your map. - In the properties, note that the
Events > Tag
isMapExit
. You can change it if you like. - Expand the
MapExit
section in the properties. - Set
bPlayTransition
toTrue
. - Set
cameraPathTag
toMyPath
. - Set
DestMap
to the name of your desired map to transition to. - To trigger the
MapExit
, you can set up aTrigger
withEvents > Event
set toMapExit
. You can also trigger it from a conversation