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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Anim Montage - Set next section without using name constant

I have the following animation montage. alt text

I am trying to set the next section of the montage dynamically in c++ without using a constant name (hardcoded).

In other words, at a certain point I want to be able to tell the montage to go to the next section that I have defined.

So, if the current section being played is "Strike1" I want it to go to "Strike2".

I know how to do this via the following

 Montage_SetNextSection("Strike1", "Strike2", GetCurrentMontage());

However, I don't want to have to specify the names since I just want it to go to the next section.

So I would like to be able to get the next section name from looking at the current section.

I see that there is Montage_GetNextSectionID.

However, I'm not sure how to get the section name from that ID.

And I'm also not sure if that next section ID would return the ID for "Strike2" or not.

Because I don't know if the "next section" is looking at #1 (see red number in screenshot) or #2 (see red number in screenshot)

Product Version: UE 4.12
Tags:
montage.png (52.9 kB)
more ▼

asked Sep 18 '16 at 05:33 PM in C++ Programming

avatar image

erebel55
385 43 46 66

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
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