How to queue up character actions?

I am trying to set up a queuing system where I can input some commands, that will be stored and then acted out by the character, in the certain order I defined them to (and be able to modify the list and the order of the action items on the fly in game). How can I set up something like this?

You could make an array of enums the enum will hold every command you can use, use a loop and use a switch statement at the beginning of the loop to see what command the user want, after that just write the functions of the commands.

oops, I might have gotten something wrong, one sec I will try this and see if it would work. It may have given you the general idea even if it's not entirely accurate. Doing the work 4 u -_-

nevermind, your what?

Actually, this is really good advice if you know C++. I was working on showing him exactly how I would do it when you posted your answer. The term “steal my thunder”: Number 1 Steal thunder - Idioms by The Free Dictionary

But wait, there’s more. Array Nodes | Unreal Engine Documentation

haha that’s cool man, you don’t have to do the work just point me in the right direction so that I can learn :slight_smile:

Hi,
there is a builtin data structure which to point you to the right way.
take a look at this TQueue

or a std::priority_queue standard c++ (yes, research about to use std:: into ue4 c++ script before do it).

1 Like

He is blueprinting, dude omg u just tried to steal my thunder.

You can add an enum by right-clicking in the file browser and going into the blueprints section.

In the widget.

In the characterBP(pawnguy)

What it does. Enter commands, press enter, enter a bunch of commands, and then press execute.

Walla.

I’m gonna have to take some time to absorb all this, but I really appreciate all the time and effort to give answers to my noob ■■■ haha :smiley: thank you!

Ill add comment if I have an addon question

Wow! I got it, thanks.

I’m gonna have to take some time to absorb all this. I really appreciate all the effort and time to answering my noob questions :smiley: thank you!

Ill add a comment if I have additional related questions

You should probably mark this as the right answer…