Skip to main content

Mythicmob NPC Camera Cinematic

Focus on a MythicMob NPC during a cinematic

Fields

FieldTypeDefaultDescription
segmentsList<MythicMobNpcSegment>empty—
MythicMobNpcSegment (4)
FieldTypeDefaultDescription
startFrameInt0—
endFrameInt0—
npcRef<MythicMobNpcInstance>—The MythicMob NPC instance to focus on.
MythicMobNpcInstance (6)
FieldTypeDefaultDescription
definitionRef<MythicMobNpcDefinition>——
spawnLocationVar<Position>ORIGIN—With rotation
dataList<Ref<EntityData<*>>>empty—
activityRef<out EntityActivityEntry>——
groupRef<out GroupEntry>——
secondaryOffsetVector{"x":0.0,"y":0.0,"z":0.0}Offset (X, Y, Z) for the secondary focus point (automatically created with empty text)
pathList<PathPoint>emptyCamera path points for this segment.
PathPoint (2)
FieldTypeDefaultDescription
locationVar<Position>ORIGIN—With rotation
durationOptional<Int>——
Common TypeWriter fields (criteria)
FieldTypeDefaultDescription
criteriaList<Criteria>empty—

How to use it​

Add this entry to a cinematic page. Each segment (at least 10 frames) frames one NPC.

  • npc is the instance to look at. The camera looks at its spawn point plus secondaryOffset.
  • path lists the camera positions. Each point has a location (with rotation) and an optional duration in frames. Points without a duration share the remaining frames. The rotation is recalculated so the camera always faces the NPC.
  • With an empty path, the camera stands 3 blocks to the side and 1 block above the focus point.

The camera is an invisible text display the player spectates, like the engine's own camera cinematic.