• 🏆 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!

model attachments??

Status
Not open for further replies.
Level 2
Joined
Aug 24, 2008
Messages
17
hey i know how to attach models using triggers items and abilitys is there a way to remove previous weapons so they dont stack
 
Level 11
Joined
Apr 28, 2008
Messages
696
Save every attachment in an effect variable and destroy it before attaching a new one.

Greetings
Thy
 
Level 31
Joined
Apr 17, 2009
Messages
3,571
No.

He has attached a weapon per trigger.
Now he wants to attach another weapon.
But his problem is, there's still the old weapon attached.
So he wants to know how to remove the old weapon.

  • Attachments
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Sword
    • Actions
      • Special Effect - Destroy Current_Attachment
      • Special Effect - Create a special effect attached to the left hand of (Triggering unit) using war3mapImported\Sword.mdx
      • Set Current_Attachment = (Last created special effect)
 
Status
Not open for further replies.
Top