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

About Destroying Effects

Status
Not open for further replies.
Level 3
Joined
Nov 17, 2005
Messages
44
Say you have a weaponless unit model, a footman without a sword for example. You've used one trigger to add a weapon to his sword arm, say it's another sword. Now, the problem is: that sword attachment doesn't have a death animation. So, if you want the footman to be able to quickly swap between weapons, it will actually appear in-game that he's holding both the sword you gave him first, and say the spear you just gave him now. That is, until the sword vanishes from the destroy effect function in a few seconds.

Well, that's the problem. Is there any way to instantly remove effects/attachments that don't actually have death animations or am I going to have to attempt to learn how to add a simple animation to each weapon attachment that simply causes it to vanish immediately when the Death Animation is played (No other effects).

Well, thanks for your time. I really hope this can be done through triggers, because I haven't really the slightest idea how to add even a simple death animation like that.
 
Level 25
Joined
Jun 5, 2008
Messages
2,573
Aslo that triggers may leak so just in case use the method:

  • Special Effect attach ...
  • Set SpecEffect1 = last created effect
  • Now when you switch items or what you do
  • Destroy SpecEffect1
  • Custom script: set udg_SpecEffect1 = null
Or you could try using sphere ability and adding it to your item using your models and your attachment points
 
Level 3
Joined
Nov 17, 2005
Messages
44
Could you explain this sphere ability method to me?
I'm not sure exactly what you mean...
If I set the attachment to the sphere ability as sort of a dummy ability... When the ability is removed from the unit, the attachment will instantly disappear, even without a death anim?

Oh, and thank ya both for responding so quickly.

[Edit]

Okay, I think we've had a failure to communicate.
I know how to attach and remove effects from units. I'm looking for a way for it to be done //Instantly// if the model does not have a death animation. When you destroy an attachment such as a sword normally, it just sits there for a few seconds, then vanishes. I'm looking for a way to prevent it from just sitting there when you destroy it. Because, it seems to always play it's death animation when you destroy an attached effect, most sword attachments do.not.have.one.
 
Last edited:
Level 12
Joined
Mar 16, 2006
Messages
992
The blood mage's sphere ability already is in the blood mage's original animations. Technically you can attach them, but they will be nonmoving balls and look funny.
 
Level 25
Joined
Jun 5, 2008
Messages
2,573
Make an custom sphere ability for your item, make the Art - Target = Your model, make it have 1 target attachment and then make the attachment point equal to hand,left(hand,right), make cooldown 0 put some or none misile art,make it supersonic(20000 speed) arc 0 should work now.
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
Make Death Animations for them -.-
Edit: Why do you even use triggers for weapon attachments anyway
 
Level 3
Joined
Nov 17, 2005
Messages
44
Thanks, genius, if I wanted that kind of response, and wanted to edit the model itself, I'd have put this in a different thread, wouldn't I?

She, the hero, swaps between multiple weapons.
Also, I have only basic knowledge of mdl editing, much less animation.
 
Level 22
Joined
Jun 23, 2007
Messages
3,242
use the morph ability.
create two custom units, one has the spear as an attachment, the other with a sword. then make a bear form ability, name it switch weapons or whatever, and set the alternate forms as the two units.
if your using a hero, theres a little box in the world editor that says unit equivalents or something like that, set that to the alternate unit, and vice versa, so all the items/abilities are saved.
 
Status
Not open for further replies.
Top