OnSpawn weird bug

Hey guys!
I'm using a custom spawn system via nw_c2_default9.nss and can't understand something. When I start a module normally from a game menu, my system doesn't work, but if I restart module via StartNewModule() - it works all the time. I'm not sure how to debug this situation. Maybe someone has a clue? thanks
I'm using a custom spawn system via nw_c2_default9.nss and can't understand something. When I start a module normally from a game menu, my system doesn't work, but if I restart module via StartNewModule() - it works all the time. I'm not sure how to debug this situation. Maybe someone has a clue? thanks
0
Comments
Well, yeah, it is exactly called from nw_c2_default9. I just thought there was some kind of bug or something. Because after calling StartNewModule() its works perferctly in every area. Was hoping someone's had the same issue.
So, this is a known issue and unlikely to be changed. But you can get around it by ensuring that enemy are always either spawned from an "encounter" or by the CreateObject scripting command... I think.