You are welcome.
I see what you mean that priorities are not important for this instance since its not exactly an autonomous agent.
Without priorities taken into account then indeed the best solution is the Switch composite and similar to what you have, Although I would certainly use an enum.
I have attached the BT image for you here.
The Variable “command” seen is a custom enum:
1
2
3
4
5
6
7
8
publicenumUnitCommand{
Stop,
Move,
Attack,
Gather
}
With the events we set the last command issued and then Switch it to take action.
Of course we should provide a deafult like Stop/Idle or similar to start with.