Forum rules - please read before posting.

Run cutscene from menu

Hi. Just a quick question – is there a way to run a cutscene that's placed in the scene using a menu? The "Run action list" click type lets me run an Action List asset, but not a local cutscene.

All I can think of is to use the "Custom Script" option, pass a reference to the cutscene into the script, subscribe to OnMenuElementClick, and call the Interact method. But there could be many of these menus. Is there another way?

Comments

  • The ActionList: Run Action will let you run an in-scene Cutscene, provided the Source field is set to In Scene.

    When you assign a Cutscene, AC will assign and record a Constant ID component/number on the Cutscene object, and display it in the Action. This ID number is how AC re-connects the two when the scene is re-opened, so you'll need to save the scene after assigning it to ensure the connection remains.

  • Thank you for answer. So it looks like i should create kind of "proxy" global action list for every button. Am I correct?

    https://imgur.com/zKyr6LV

  • For a given button, yes. But as the proxy references the scene-based ActionList by ID number, you can share that same ID number across scenes if you want the proxy to work in different scenes.

    A pair of tutorials about linking scene objects with assets can be found here.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.