• 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.

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

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,287
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