Posted: Sun Jun 28, 2015 10:07 pm Post subject:
Help needed! : Airstrike base defense
Subject description: or maybe go for spawns?
Hi
am trying to make a building use an airstrike as a base defence
the problem is, the building doesn't auto target anything, and also I couldn't remove the red effect from the building, am sure my code is all wrong as all i did was copy the exact code from Boris to the building.
Am using it in a special campaign map only.
Should I use spawned units ( like the naval carrier's ) instead of the airstrike?
if so, can anyone help with the code?, and thanks in advance QUICK_EDIT
Joined: 05 Sep 2013 Location: LocationNotFoundException at RealLife.Location.find() at line: -1
Posted: Mon Jun 29, 2015 10:40 am Post subject:
The building would need CanPassiveAquire=yes, and GuardRange same as weapon range. (Not sure if there must be something more, or if buildings works with airstrikes at all.)
A reason for why spawning is better, is that when the airstrike weapon targets an unit, it targets the ground beneath the unit, and does not update the target if it moves but is still in range. QUICK_EDIT
It seems that on buildings, the HORNETs are spawned from the topmost corner square, but insist on landing in the centre of the building. And since these only correspond on 1x1 buildings, the spawned aircraft can't launch.
If I could figure out how to make them be spawned at an offset equal to the centre square, I could see if that works, but I'm seriously doubtful.
Use PrimaryFirePixelOffset or PrimaryFireFLH to set the launching point to the center? _________________ SHP Artist of Twisted Insurrection: Nod buildings
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum