Code FIRSTPACK: 100 credits for $5 or 200 for $10, for the first 1000 orders. Credits never expire. See packs
EPressedReleasedGet Player Camera ManagerTargetPlayerIndex0Return ValueGet Camera LocationTargetReturn ValueGet Camera RotationTargetReturn ValueGet Forward VectorInRotReturn Value×AB300.0Return Value+ABReturn ValueLineTraceStartEndTraceChannel0OutHitReturn ValueBreak Hit ResultHitHitActorBranchConditionelseInteractTarget

Interact Raycast (Press E)

Ready to pasteInteraction11 nodes, 14 wiresGallery

The interact key line-traces 300 units from the camera and calls Interact on the actor it hits.

Make one like this

Planning is free. Building the graph costs 10 credits, and a free account starts with 50.

Use this exact graph

Copy and Apply for gallery graphs come with every paid plan, from $9.99 a month. See plans

Before you paste0

Nothing to set up. Open your Blueprint’s Event Graph, press Ctrl+V and compile.

Good to know. Interact is called as a function of this Blueprint, so it only reaches actors of the same class. For doors, chests or NPCs, swap the call for a Blueprint Interface message.

How it works

  1. Trace from the cameraIA_Interact traces a line from the camera 300 units along the view direction.
  2. Interact with the hitOn a hit, Break Hit Result gives the actor and Interact is called on it.

More interaction blueprints

See all 55

Made with Cosindra Blueprint Studio