This thing has been awful to code (for me) as it has lots of local variables and if clauses (That's called the Argentinian way: doesn't work? add more if clauses!) but it works! The code is totally hideous and I would prefer if you could run the scene first, and THEN see the code.
Tell me how awesome it works, then how "awesome" the code is, in the comments
That is all I could do 'bout it.
It has:
-Spider with 12 legs total
-Priority shoot system
-Detector lasers
-Focus lasers (to reduce ammunition usage)
-Lag
This is for a colab between lololoer, homieeee and me. I wouldn't have accomplised this without their help, although I must say that this was mostly on my own (yeah guys, your codes were 2 hard 4 me xd) but some ideas and 1/2 of the bullet spawn code were from them
If someone knows how to detect the state of a geometry (i.e. if it's alive (false) or it was erased (true)) ONLY wit GeomID (no onDie) PLEASE tell me (/us)! The onDie thing is a workaround for now, I guess
Start sim, and zoom out to see the entire thing. then leave it work!
EXPLANATION
The red lasers search for a geometry, and try to save the geom's geomID in the closest slot of the buffer in the circle. Then the circle reads the assigned priority of the geometry, and stores it in other slots. The circle averages the priorities, selects an object with priority higher than the average, aims at the object, waits for the focus lasers to position, and then does that again until it gets to the lowest priority object. When there aren't buffered objects left, the circle scans for new objects, and repeats. While the circle scans, the spider moves slowly unless no object is detected in 1 second; if that happens, it starts moving fast, after the red lasers detect another geometry, and the whole process repeats
Please RATE and COMMENT! Don't just say "Oh awesome 10/10" but rate (the real thing!)
Sorry guys, i had to do this