• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Spell Help! Auto seeking missiles.

Status
Not open for further replies.
Level 2
Joined
Nov 4, 2017
Messages
7
Hi! I'm new with the World Editor and triggers, I need help to create a spell. it's a passive skill that auto fire missiles to nearby enemy.
Models: Siege Engine.
Thanks :)
 

Jampion

Code Reviewer
Level 15
Joined
Mar 25, 2016
Messages
1,327
You can use the phoenix fire ability. It randomly fires projectiles to nearby enemies and ignites them. You can set the duration to 0.01 seconds and the damage over time damage to 0, if you don't want a damage over time effect.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,198
If one wants the hits to be known as attacks then one could periodically move an invisible dummy unit with the siege engine using SetUnitX/Y (not the other set unit natives as they have more overhead and force stop) which will fire at enemy units. One would need a custom remapping function to convert the damage source from the dummy to the siege engine of course.

Ironically in SC2 this is a 5 second data editor job, simply changing some of the flags of the unit's weapon.
 
Status
Not open for further replies.
Top