x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Sequencer: Is it possible to pass struct as parameter to custom events?

Hello everyone,

Apologies if this has already been answered somewhere and I missed it, but I'm wondering if it's possible to pass structs as parameters (or any kind of parameter for that matter) to custom events called by Sequencer.

It seems like it's possible, as the UI gives you the option to pass structs as parameters as shown in the image below, but when I actually run the build the event doesn't run correctly.alt text

Upon inspection, the output log gives a warning for trying to do this: ": Sequencer Event Track: Parameter count mistatch for event 'SetRiddleMasterTalk'. Parameter struct contains too many parameters ('StringValue_3_83B44616432A8245F46B459B3A45E72A' is superfluous at index '0'."

For reference you can find my Level BP and struct configuration below. alt text alt text

Any thoughts would be appreciated!

Product Version: UE 4.15
Tags:
example.png (92.0 kB)
levelbp.jpg (151.4 kB)
stringstruct.jpg (60.6 kB)
more ▼

asked Mar 09 '17 at 05:14 AM in Using UE4

avatar image

gypsyotoko
1 1 2 3

avatar image gypsyotoko Mar 09 '17 at 05:57 AM

One more additional piece of information - I'm suspecting that this isn't supposed to actually work anyhow, since I tried creating a struct where I would pass a Flipbook to it, but whenever I selected a Flipbook to pass in the dialog from "example.png" Unity would crash 100% of the time.

avatar image gypsyotoko Mar 17 '17 at 04:45 AM

Is there such a thing as a bump in these forums? ^^;

avatar image Max.Chen STAFF Mar 20 '17 at 04:05 PM

The workflow here isn't ideal. But if you change the parameter in SetRiddleMasterTalk alt textto a String, it should work.

avatar image gypsyotoko Mar 21 '17 at 04:17 AM

Hello Max, thanks very much for the reply! Unfortunately as far as I can tell, there's no way to change the Sequencer UI to take a String as opposed to a struct.

alt text

If you have any further thoughts I'm certainly all ears. Thanks again.

untitled.jpg (42.4 kB)
avatar image Max.Chen STAFF Mar 21 '17 at 04:24 AM

So, I didn't describe the fix well. I duplicated everything you had and got the same unexpected behavior. However, to fix the issue, I selected the SetRiddleMasterTalk event in blueprint and in the details panel, in the Input section, the input your situation is a StringStruct. If you look in my image, circled in red, I changed it to a String. Let me know if that's doesn't make sense or doesn't solve your problem.

If you look in my image, the string feeds directly to the print string node. It's not a string struct, which needs to be broken.

avatar image gypsyotoko Mar 22 '17 at 02:29 AM

Thanks for the reply!

I understood that you changed the type of the input parameter from the string struct to a plain String type. My problem is getting the value of the String parameter as set in the Sequencer event property UI, so changing the input of SetRiddleMasterTalk in the Blueprint from a struct to a String doesn't change the final result that there doesn't seem to be a way to pass String information from the Sequencer cutscene to the Level Blueprint, and finally to the print call.

Sorry, perhaps I haven't been clear about what I'm actually trying to do:

  • I'd like to use Sequencer to create cutscenes in a level

    • I'd then like to use the Event Track of the Sequence to call a Blueprint function in the Level Blueprint that could be used to manipulate actors

    • In this specific case, I'd like to pass an arbitrary string in the Event Track that could then be piped through the Level Blueprint to the character, for the character to "say"

    • As shown in "unititled.jpg", the Sequencer Event Track propery UI only seems to take structs as parameters, so, for instance, if even the name of the function in the Level Blueprint is the same as the Event Name I'm calling from the Sequencer UI, that function won't actually be called if I set the function to take anything but a struct as input in the Level Blueprint. Hence why I keep harping on the use of structs. ^^;

If you feel that there's a better way to structure cutscenes I'm certainly open to hearing how it would be done more logically. ^^;

Thanks again.

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Hey Max - just wanted to let you know that I went through the tutorial found here (sorry I hadn't picked it up earlier), opened up my solution having tried what you suggested, and realized that I didn't have the Level Blueprint set up correctly. Once I fixed it your solution did indeed work. Thanks again for your time and apologies for my stupidity!

more ▼

answered Mar 27 '17 at 04:22 AM

avatar image

gypsyotoko
1 1 2 3

avatar image Max.Chen STAFF Mar 27 '17 at 01:08 PM

No problem. Glad you worked it out.

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question