Please help! I'm really baffled by this one.Printing out cutscene_action_finished.is_connected() returns ::is_connected, and the signal successfully emits when actionIndex = 0.
What do you expect to happen versus what really happens? Is the problem that "finished" isn’t printing? You could await the function instead of the signal
print(cutscene_action_finished.is_connected) does not print if the signal is connected to anything it prints the function itself, that’s why you see ::is_connected instead of true or false, but your code posted doesn’t connect to the signal anywhere as await is not related to signal connection.
If you expect await cutscene_action_finished to catch the signal when actionIndex is not 0 - it won’t happen because by the time the code reaches that await, the signal was already emitted during the call to cutsceneAction() issued on the previous line. Thus await will miss it and continue to wait forever in vain.
Again, don’t use await, it’ll fry your synapses. Use regular signal handling functions instead.
Make sure you don’t get any errors. The way you are doing it is from 3.x, and there’s no way for the editor to check if you’re trying to emit a valid signal.