Niagara Function Call not allowed for this stack context

I am trying to resize a bool array data interface when the emitter starts up. As shown in the picture below I have the flags for the module set to only be usable in the emitter spawn context. However, when compiling I get the error as shown, which seemingly says that this isn’t a valid stack context.

Is there a difference between the bitmask flags and actual stack context? If THAT is the case, how do I properly set the stack context for this module?

Thanks in advance!

1 Like

Hello, have you found a solution to this? Thank you!

1 Like

Looks and smells like a bug.
Maybe try again with newer version of the engine, and if it doesn’t work, send a bug report.

Tested in 5.4 and this is still not fixed.
Utilizing array in Niagara script is next to impossible.
Adding array element only works properly in GPU simulation.
In CPU sim, only the first element is written no matter the array size or iterations.
This also means it’s not possible to be done in System/Emitter stack.