So basically I create a new asteroid field using the createAsteroidField function with arguments (1,1,19,4,25,10).
Problems:
It creates the field NOT where I wrote (top-left corner is 4;1 instead of 19;4, bottom-right corner is 10;5 instead of 25;10)
It doesn't create only 12 asteroids like it should, it creates 205 of them
When I shoot anywhere once with a USP, all 205 asteroids + some additional 7 are 'hit' and their health decreases to -24 EXCEPT for the asteroids #19-25, health of which decreases to 76 as it should, plus they aren't removed like they should be
Only one type of asteroids is used (1st) instead of a random one from 1 to 5Screenies of the thing:
How the asteroid field itself looks like:
The console output after shooting anywhere (not full due to 212 printed messages):
Additional functions not seen in the script code but used (external files): http://pastebin.com/AeP1fSfi
It may be just a few typos made by me, but I really don't know.
Thanks in advance!
[Lua Problem] Asteroid issues
1 
Offline



