• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Call artillery skill

Status
Not open for further replies.
Level 7
Joined
Dec 5, 2013
Messages
280
I would like to create cannon type unit in base, which can issue bombardment at any point in the map as long as its revealed by other units, but I have no idea where to even start.
 
Level 28
Joined
Sep 26, 2009
Messages
2,520
I would base it off either Far Sight or Channel (I would stick to channel as it has the "Follow through time" field).

When cannon is issued the order to cast this ability, check the target point if that area is revealed (dunno if there is function for that, as I had no need for that so far, however you could create a unit group with units within X range and check if any is close enough to the point to see it). If no unit is in there, you order cannon to stop (this will prevent mana from being drained and cooldown from starting).

Then when he does successfuly start the cast (if it should work like that atom bomb or whatever it is in SC2), you periodically check the visibility around target point (like every 0,5 seconds or so).

If all is well you just start the bombardment.
 
Level 7
Joined
Dec 5, 2013
Messages
280
In summary, I just want cannon type unit which works basicly same way as blizzard but with unlimited range. Could it be as simple as just making custom blizzard?
 
Level 28
Joined
Sep 26, 2009
Messages
2,520
in a sense, yes. Though rain of fire may be better (it also sets unit ablaze, which could work well with bombs). Problem may be finding correct "bomb" projectile effect, as blizzard and rain of fire are both effects which show the projectile to fall down - they are not real projectiles, only effects.

And of course checking if target point is visible.
 
Level 7
Joined
Dec 5, 2013
Messages
280
Custom rain of fire works fine but it can be cast in fog of war. How to prevent that?
 
Status
Not open for further replies.
Top