dot big bang

Developer API
Menu
All
  • Public
  • Public/Protected
  • All

The islands in this example are linked by bridges. In this case players don't walk across the entire bridge, but teleport from one end to the other when they get close enough. This is handled with the dbb_teleport_on_contact script. Each bridge has a copy of this script on it and references an invisible target object as the spot the player will move to. This script has a few properties on it:

  • Target

    • The entity to move the player to when they teleport.
  • Notify Camera

    • If true, the camera will set its rotation based on the new rotation of the player when they teleport.
  • Teleport FX

    • If set, this template will be spawned at the new location of the player when they teleport. Make sure the template removes itself from the game when it is done by using a dbb_destroy_after_delay script.