Skip to reading
First Light, Part 4: The Message in the Machine

Put Nell behind the lift shutter

Edition 0.86.3.4

Part 4 of the First Light course. Build a two-character rescue using shared variables, attach-point alignment, sparks, a camera close-up, separate journals and a timed lift reserve.

Download PDFView illustrations

08 / THE RESCUE

1. Place Nell. Choose Adventure Database › Add › Character. Set ID nell, name and display name Nell, role NPC. Leave the player and playable options off. In Character › Model / Asset choose Kit Model from Part 2. In Animation States, match Kit’s idle clip and use the model clip Walking for walk. Loop both at speed 1 and apply each state and the character.

2. Put the character in the room. Open Relay Room › Add to Scene › Character and pick Nell. In Scene Objects select the placed character. Set its scene object ID to nell and its 3D Position to 0, 0, −2.6. Keep Visible and Enabled on. The room script will hide her until the shutter opens.

3. Create Lift Rescue. Choose Adventure Database › Add › Cutscene. Name it Lift Rescue, duration 4 seconds. Enable Skippable, Hide HUD and Restore Camera. Set its ID to lift_rescue in the record Inspector, or keep its generated ID and use that exact ID on page 13.

4. Add these three events. For each row use Add Event, click its block, enter its Start Time and Duration, and replace that event’s Action Data (JSON, Advanced) with its matching block below. The blocks follow the order of the table. Copy one pair of outer braces at a time. Click Validate and Apply Event for each. Save the project.

Source table from Put Nell behind the lift shutter, page 9
Action (track)StartDurationWhat happens
CameraShake (Camera)0 s0.35 sThe latch releases.
CameraMove (Camera)0.35 s1.8 sMove in on Nell as the shutter opens.
ShowMessage (Dialogue)1.4 s2.3 sNell answers during the move.
Code example
{"type":"CameraShake","power":0.18,"duration":0.35}
Code example
{"type":"CameraMove","duration":1.8,"position":[1.45,1.45,0.45],
Code example
 "target":[0,0.95,-2.6],"fov":40}
Code example
{"type":"ShowMessage","duration":2300,
 "text":"Nell: Fresh air! I thought nobody heard the keys."}

Select the second camera event. [1] Start and duration are seconds on the timeline. [2] CameraMove brings Nell into frame. The message action’s 2300 means 2.3 seconds.

Page 9 of 16Permalink
Go to page

Continue your 3D adventure

  1. Part 1First Light, Part 1: Your First 3D Adventure
  2. Part 2First Light, Part 2: Three Knocks
  3. Part 3First Light, Part 3: Behind the Wall
  4. Part 4First Light, Part 4: The Message in the Machine
  5. Part 5First Light, Part 5: The Clockmaker’s Secret
  6. Part 6First Light, Part 6: The Final Hour