Custom Stunner Spawner

Started by Keeper Decagon, February 10, 2017, 09:27:11 AM

Previous topic - Next topic

Keeper Decagon

I'm basically looking for a structure that spawns stunners but only targets ships within a certain radius of the spawner. Is this possible, and if so, can somebody help me out with a script?
"For me, there is no honour or glory. No praise to be had for what I do. I fulfill my purpose for the protection of all... neither of us are going to make it out of here alive." - ?? ??, 145th CE

Nicant

#1
It's possible to make the script find a ship in a radius and spawn a stunner, but i do not think you can change the stunner's target. Stunners seem to find a random target and will continue to pursue that target until destroyed. Interestingly enough, when making the overcharge module, stunners will still pursue their original target even after they have switched teams.

So sadly, i don't think there is a way, but who knows!
CW4 hype!!

GoodMorning

This may be doable, I think planetfall's map sudo rm lathe had stunner generation/targeting code. Managing the radius might involve DestroyUnit for Stunners which wander too far.
A narrative is a lightly-marked path to another reality.