I was wondering what having a sphere, and if any unit walked out of this sphere it could no longer function, could do..
I was thinking this would be an interesting idea..
Is this already in as script that we can modify, or would we need to put two tags in?
controlled=(0 or 1)
controlsphere=(0 to infinite?)
Control Radius..
Moderator: Moderators
Zwzsg wrote a script that allows a unit to check if other units of a certain type are nearby. That'd be trivial to work from, although it is a pretty ugly/slow script since it uses get UNIT_HEIGHT to determine what is what and it doesn't use the engine's quad optimizations obviously.
I've modified it to handle the restocking of ammunition in GINTA, not much harder to make a unit check if it's in the radius and cease functioning if it isn't.
I've modified it to handle the restocking of ammunition in GINTA, not much harder to make a unit check if it's in the radius and cease functioning if it isn't.
The perimeter grid would be too complicated, you'd have to trace the route back to the mainframe for each generator since you can't have generators communicating to each other whether they are connected (otherwise I'd just have each generator tell others how many jumps it's away from the mainframe). Without any form of array or list a search through the tree is going to be awful.Soulless1 wrote:this would be cool for a 'Perimeter'-style energy-grid system, or maybe a 'synapse creature' function if anyone ever wants to make tyranids for the warhammer 40k mod...