It is not because it is inside a function, it is because your erroring branch is trying to use a reference from the output pin of a node that didnt execute (the one that spawns the particle effect)
It is not because it is inside a function, it is because your erroring branch is trying to use a reference from the output pin of a node that didnt execute (the one that spawns the particle effect)