BlueprintScribeDemo Blueprints
/Game/ScribeTest/Blueprints

Actor BP_Door

A door that opens when the player interacts with it.
Locked doors need their BP_Key.

Parent
BP_InteractiveBase → Actor
Interfaces
BPI_Interactable
Compile
Warnings
Size
54 nodes in 6 graphs (largest: EventGraph, 42)
Complexity
30 Moderate (54 nodes, 1 branch, 1 cast, 6 graphs, largest EventGraph (42))
C++ candidate
34 Consider C++
Hard references
5 packages, 81 KB
Used by
1
Documented
75% (9 of 12)

Audit 12

  • WarningEvent TickEvent Tick runs 24 nodes every frame. Timers, events or a lower tick interval are often cheaper. EventGraph
  • InfoCast to BlueprintCasts to BP_Key. The cast target is loaded together with this Blueprint; an interface avoids that. EventGraph
  • InfoUnused variableVariable 'Settings' is not used in any graph of this Blueprint (other Blueprints may still use it).
  • InfoUnused variableVariable 'State' is not used in any graph of this Blueprint (other Blueprints may still use it).
  • WarningUnused variablePrivate variable 'UnusedCounter' is not used in any graph.
  • WarningDead nodes1 node in 'EventGraph' never runs because nothing is connected to the exec input: Print String. EventGraph
  • InfoUnused results1 pure node in 'EventGraph' has no connected output: Get Actor Location. EventGraph
  • InfoDisabled nodes1 disabled node in 'EventGraph': Print String. EventGraph
  • WarningDeprecated node'Get Unique Device Id' in 'EventGraph' is deprecated: Usage of 'Get Unique Device Id' has been deprecated. Use GetDeviceId instead EventGraph
  • InfoMissing description2 functions and events have no description: HelperNoDocs, Slam.
  • InfoMissing description1 public variable has no tooltip: OpenSpeed.
  • WarningCircular referenceHard reference cycle with BP_Key. Each of them loads all the others; an interface or a soft reference breaks the cycle.

C++ migration

34 Consider C++ score 34 of 100

  • Event Tick runs 24 nodes every frame; a C++ Tick, a timer or an event costs far less.

Before an engine upgrade

  • 1 deprecated node: replace it before the next engine upgrade.
  • Compiles with warnings: today's warnings are often the next version's errors.

Components 3

  • DefaultSceneRoot SceneComponent from BP_InteractiveBase
  • DoorMesh StaticMeshComponent
  • Trigger BoxComponent Overlap area for the interact prompt.

Variables 6

NameTypeDefaultDescription
bIsLocked
Instance Editable Door
BooleanFalseLocked doors only open with their key.
OpenSpeed
Instance Editable Expose on Spawn Door
Float (double-precision)2.0—
Settings
Instance Editable Unused
F_DoorSettings Structure(OpenAngle=90.000000)Shared tuning values.
State
Replicated Unused
E_DoorState EnumClosedCurrent state, replicated.
Key
Instance Editable
Actor Object ReferenceNoneThe key that unlocks this door.
UnusedCounter
Private Unused
Integer0—

Functions 5

Open

Open(Speed: Float (double-precision)) → Success: Boolean

Opens the door at the given speed. Returns false when it is locked.

NameTypeDefault
inSpeedFloat (double-precision)
outSuccessBooleantrue

HelperNoDocs Private

HelperNoDocs()

IsOpen Pure Const

IsOpen() → Result: Boolean

True while the door is open.

NameTypeDefault
outResultBooleanfalse

GetPrompt Interface (BPI_Interactable)

GetPrompt()

Interact Interface (BPI_Interactable)

Interact()

Events 4

Event BeginPlay Override

Event BeginPlay()

Event when play begins for this actor.

In EventGraph

Event Tick Override

Event Tick(DeltaSeconds: Float (single-precision))

Event called every frame, if ticking is enabled

NameTypeDefault
inDeltaSecondsFloat (single-precision)0.0

In EventGraph

OnUnlocked Custom Event Multicast, Reliable

OnUnlocked(Who: Actor Object Reference)

Plays the unlock effects on every client.

NameTypeDefault
inWhoActor Object Reference

In EventGraph

Event Dispatchers 1

OnDoorOpened

OnDoorOpened(Door: Actor Object Reference)

Broadcast after the door finished opening.

NameTypeDefault
inDoorActor Object Reference

Graphs 6

GraphKindNodes
EventGraphEvent Graph42
OpenFunction3
HelperNoDocsFunction2
IsOpenFunction3
GetPromptInterface2
InteractInterface2
EventGraph · Event Graph · 42 nodes

Notes 2

  • EventGraph · Print String
    Debug only: shows the device id when the door is unlocked.
  • EventGraph
    Startup: open the door if the key fits

References