I'm trying to create an array in my main loop to keep track of active squads of military creeps. The problem is that when the game detects that it needs to push a new squad to the array, it does it and the array returns length = 1, but as soon as the loop encounters the code again, the array length is 0 and it executes the push command again. Can anyone help me here? is there a problem with pushing strings into an array in the main loop? Is it possibly a scope issue?
vulgarwozard
@vulgarwozard
1
Posts
494
Profile views
0
Followers
0
Following
Posts made by vulgarwozard
-
Create an array in main loop