• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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 :)
 
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,207
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