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 > InterpolationPointactor to your map. - In the properties, set the
Events > TagtoMyPath. - Create a copy of the
InterpolationPointand place it somewhere else. - In the properties, change the
InterpolationPoint > Positionto 1. - Create another copy and set its position to 2.
- Still in the properties dialog, set
bEndOfPathtoTrue. - 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 > InterpolateTriggerin your map. - In the properties, set
Events > Eventto theEvents > Tagof 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
MapExitactor in your map. - In the properties, note that the
Events > TagisMapExit. You can change it if you like. - Expand the
MapExitsection in the properties. - Set
bPlayTransitiontoTrue. - Set
cameraPathTagtoMyPath. - Set
DestMapto the name of your desired map to transition to. - To trigger the
MapExit, you can set up aTriggerwithEvents > Eventset toMapExit. You can also trigger it from a conversation