• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

How to change Missileart model in run-time

Status
Not open for further replies.

Veehmot

V

Veehmot

That's it. I wanted to know if there's a way to change the model of the missile.. or Missileart value of units.
You can see this effect in the spell <AHfa> of the unit <Emoo> (raw names). But I don't want to do a new spell based on that one, I need to call a function somewhere else... is there a JASS code for this?

Thanks
 
Actually, Searing Arrows doesn't change the model of the missile, all it really does is cast a spell that has the burning arrow model as a missile, they have no correlation to eachother, although it might seem that way since blizz made one arrow model, then made a new one based on the first arrow model and added some nice fire on it, thats it. If you wish to do the same then base your ability on that one and change the missile type to whatever you like. :cute:

Alternatively, make a trigger that creates a missile dummy that moves towards a target, then exchange the dummy for a new one with a different model. There are plenty of these triggers on the forum. :wink:
 
Use the "Item attack fire bonus" ability, just copy it and change the "Missile Art" field to whatever you want the missile to be, and set all the others to nothing, and "Targets allowed" to whatever your unit can attack.
Then just add the spell to the unit whenever using Unit - Add Ability function
 
Status
Not open for further replies.
Back
Top