Integrating Digi Cam with Story Framework

- by

The above video shows how to integrate SF and Digi Cam. I’ve had to do this multiple times to wrap my head around it and thought some notes are in other, so here’s how to do it:

Player Controller

  • install the Blueprint File Utilities plugin
  • add DigiCam Actor Component to Player Controller
  • implement DCController Data BPI interface
  • hook up Digi Cam AC to GetDCComponentFromParent

Input Overrides

In the DigiCamInfo Data Asset, pick Story Framework’s main gameplay input mapping context (SFGameplay_IMC).

Add two new input mappings to that context, one for the camera (Q) and one for bringing up the photo album (B).

Note that these are already mapped by default, so we risk an action being triggered twice unless we find new options for them.

Next, open Digi Cam’s mapping context (PhotoCamera_IMC) and replace the move and look mappings with the ones used by Story Framework. Note that the GASP version uses different mappings than the regular (non-GASP) version.

Tweak Interaction Controls

Right now the basics will work already, but we can still see the regular interaction prompts while looking through the camera. That’ll be… confusing, let’s take care of it. Open SFInteractionWidget_SC and patch the following under

  • Event Graph
  • Update Component Logic
  • Set Interaction Prompt Opacity
  • Get Interaction Widget Opacity

Here we’re getting a reference to Digi Cam and check if it’s active, in which case we set the widget’s opacity to 0 (or bring it up during regular game play). Next we’ll open SFInteractionManager_AC and navigate to

  • Event Graph
  • Interaction Dependendcies
  • General Camera Interaction Trace

Amend the following condition at the end, checking for the opposite of what we checked above.

Disable Digi Cam in custom camera angles

We can amend the logic to prevent this in DigiCam_AC under

  • Event Graph
  • Open Close Update Photo Cam
  • Can Open Photo Cam Condition

Gamepad Tweaks

To make the gamepad detection swap over the icons for both Story Framework and Digi Cam, we’ll have to disconnect the Any Key detection in DigiCam_AC

and then hook it up again through the SFDemoPlayerController_BP

That’s it!



If you enjoy my content, please consider supporting me on Ko-fi. In return you can browse this whole site without any pesky ads! More details here.

Leave a Comment