So yeah, I'm in the process of making a cinematic event, everything was going fine until I added more than about 30 creatures moving. I had them create a custom waypoint map, with this code so once they reach the end they will stop moving.
Code:
if pUnit:GetY() < -5278 then
pUnit:DestroyCustomWaypointMap()
end
But the thing is here, when they do happen to get to that point, it crashes the world.exe, and I have no clue why.
It wasn't always like this, it worked fine until I added in about 3-4 more creatures. That being said, is there a limit on how much I can add to one script? There shouldn't be, right?
If anyone has any thought on why this is happening, please let me know.