Yes, That is exactly the solution I was going to suggest here as well 🙂
That is to create a condition that checks the state status and thus this way, it is also possible to use it normally within a condition list and to do an “If State Finish OR Something Else”.
Your version of the condition should work fine, but here is a slightly different one:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using NodeCanvas.Framework;
using ParadoxNotion;
using ParadoxNotion.Design;
using NodeCanvas.StateMachines;
namespaceNodeCanvas.Tasks.Conditions{
[Category("✫ Utility")]
[Description("Check the parent state status. This condition is only meant to be used along with an FSM system.")]