Announcement

Collapse
No announcement yet.

How to setup buttons to trigger multiple matinees

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to setup buttons to trigger multiple matinees

    Hey folks

    I'm very new to Blueprint, my background is web and branding so please excuse my ignorance if the solution I'm after is paaaaainfully obvious.

    I want to create this simple scenario (I am using the Third Person Starter map to work from):

    - Put a button on the map which changes colour and spins when a player approaches, makes them bored, stops when they leave
    - When the player is close to the button and presses LMB, a cinematic is triggered
    - Import several of these buttons into the map, allowing the player to trigger various cinematics at will

    I've created the following Button Blueprint which successfully makes the button spin and change colour when approached, and print some text on the screen when LMB is clicked just to ensure that core function works:

    Click image for larger version

Name:	ue4Problem01Shot01.jpg
Views:	1
Size:	160.4 KB
ID:	1149651

    I have likewise created a simple matinee, which is triggered by the following Blueprint just to make sure it works, and it does:

    Click image for larger version

Name:	ue4Problem01Shot02.jpg
Views:	1
Size:	91.2 KB
ID:	1149652

    The problem I have, is knowing how to change the 'Print text' function when LMB is clicked in my Button Blueprint, to 'Play Matinee' instead.

    As I understand it, Matinee sequences can only be triggered within the Level Blueprint, but this is an inpractical as (I assume) it would mean duplicating my entire Button Blueprint there for every cinematic I wish to make triggerable by a button.

    In my head, I figure the logical thing to do would be make the output of LMB click in my Button Blueprint, reference the Matinee I want it to play in the Level Blueprint, but I have no idea whether this is possible or even sensible.

    Again, sorry if I've missed something obvious, any help would be greatly appreciated!
    Attached Files
    Me | Mrs | Business | Band | Shop | LinkedIn

    #2
    Ignore me, just discovered the wonderful world of EventDispatchers, sorry!
    Me | Mrs | Business | Band | Shop | LinkedIn

    Comment

    Working...
    X