Custom Maps & Logic
  • Custom Map Tutorial
    • Custom Map Introduction
    • Your first map
    • Map Navigation
    • Object Selection
    • Object Positioning
    • Object Attributes
    • Shortcuts and Macros
    • Editor Settings
    • Built-in Components Common Errors
    • Map Performance
    • Custom Assets
      • Your first Asset Bundle
      • Asset Bundles in Map Editor
      • Asset Bundles in Game
      • Adding to Asset Bundles
      • Asset Bundle naming
  • Custom Logic Tutorial
    • Custom Logic Introduction
    • Your first script
    • Variables
    • Types
    • Variable Inspector
    • Expressions
    • Conditionals
    • Loops
    • Functions
    • Coroutines
    • Classes
    • Static Classes
    • Components
    • Extensions
    • Cutscenes
    • Static Objects
    • Networking
    • Commenting
  • Reference
    • Static Classes
      • Game
      • Network
      • Map
      • UI
      • Time
      • Convert
      • String
      • Input
      • Math
      • Random
      • Cutscene
      • Camera
      • RoomData
      • PersistentData
      • Json
      • Physics
    • Objects
      • Component
      • Object
      • Character
      • Human
      • Titan
      • Shifter
      • MapObject
      • Transform
      • Player
      • NetworkView
      • Color
      • Vector3
      • Quaternion
      • Dict
      • List
      • Range
      • LineCastHitResult
      • MapTargetable
      • Random
    • Callbacks
      • Main
      • Components
  • Examples
    • Gamemodes
      • Survive
      • Waves
      • Endless
      • Racing
      • Blade PVP
      • Thunderspear PVP
      • Titan Explode
      • Cranked
      • More Examples
    • Components
      • SupplyStation
      • Daylight
      • PointLight
      • Rigidbody
      • NavMeshObstacle
      • Cannon
      • Dummy
      • Wagon
      • Tag
      • KillRegion
      • DamageRegion
      • MovePingPong
      • RacingCheckpointRegion
      • RacingFinishRegion
      • TeleportRegion
      • Animal
      • SignalMover
      • SignalSender
      • More Examples
Powered by GitBook
On this page
  1. Custom Logic Tutorial

Cutscenes

Cutscenes are a type of class that can be conveniently referenced using the Cutscene static class.

Cutscene classes must contain a coroutine "Start", which will be called upon calling Cutscene.Start(CutsceneClassName: string, full: bool).

function OnGameStart()
{
    Game.SetPlaylist("Boss");
    Cutscene.Start("MainCutscene", true);
}

cutscene MainCutscene
{
    coroutine Start()
    {
        spawn = Map.FindMapObjectByName("AnnieSpawnPoint");
        startPosition = Vector3(-85, 40, 132);
        startRotation = Vector3(2, 12.4, 0);
        velocity = Vector3.GetRotationDirection(startRotation, Vector3.Back).Normalized * 5.0;
        Camera.SetPosition(startPosition);
	Camera.SetRotation(startRotation);
	Camera.SetVelocity(velocity);
        Cutscene.ShowDialogue("Levi1", "Levi", "Defeat the female titan before she escapes the forest!");
        wait 1.0;
        if (Network.IsMasterClient)
        {
            annie = Game.SpawnShifterAt("Annie", spawn.Position);
            annie.Rotation = Vector3(0, 180, 0);
        }
        wait 4.0;
    }
}
PreviousExtensionsNextStatic Objects

Last updated 7 months ago