Modzillah
  • Modzillah
  • 50.25% (Neutral)
  • Private Topic Starter
4 years ago
Hello, so I found it annoying to choose target manually with spectre and I decided to make it an "automatic process" where you choose the location for spectre to attack but it will choose and destroy buildings automatically. I saw an old post about this tried to apply it but it doesn't work, the spectre continues to attack the same location after the destruction of the enemy building.

Here is my code:
  Lazr_JetSpectreGunship.txt (19kb) downloaded 26 time(s).
Sponsor
AdrianeMapMaker
4 years ago
I remember using a different logic since i cant get that thing work too, i just give mine some invisible overlord turret and make him attack indefinitely with the same rate as the normal spectre turret have.
A part of ZH worldbuilders map making community
https://discord.gg/tJ6zyGb 

UserPostedImage




Modzillah
  • Modzillah
  • 50.25% (Neutral)
  • Private Topic Starter
4 years ago
Hey, that may be the solution to my problem as well, could you share that portion of your code? Do i need to create a new weapon in weapon.ini?
AdrianeMapMaker
4 years ago
my code is specifically made for a map not a mod, so it has some code other modules that probably just gonna confuse you even more, i suggest that you look onto the code for the helix and its overlord turret
A part of ZH worldbuilders map making community
https://discord.gg/tJ6zyGb 

UserPostedImage




Modzillah
  • Modzillah
  • 50.25% (Neutral)
  • Private Topic Starter
4 years ago
It doesn't have an overlord turret but it does have helixcontain, this is the code for it.

Behavior = HelixContain ModuleTag_09
Slots = 1
DamagePercentToUnits = 100%
AllowInsideKindOf = PORTABLE_STRUCTURE
PassengersAllowedToFire = Yes
ShouldDrawPips = No
End


What should I change here?