Anyone know what’s wrong with this code?

If I’m not mistaken, <suspends> specifier is contagious, meaning it can only call other functions marked as such. In your case InitSpawners would also need to be <suspends>. If that’s not the issue then could you provide the error message? On second thought, I doubt this is the issue since you’re calling function is not async, but it’s worth a try.

That or in your for loop inside InitSpawners shouldn’t it be for (Obj := Spawners)?

Verse documentation is somewhat lacking on these rules because the examples are so inconsistent and don’t always follow the Verse style guides.
Ultimately a specific error message would be much more helpful for us.

1 Like