1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still haven't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. Lead your forces to battle in the 15th Techtree Contest. The call is yours, commander!
    Dismiss Notice
  4. The reforging of the races is complete. Come see the 14th Techtree Contest Results.
    Dismiss Notice
  5. It's time to choose your horse in the race - the 32nd Modeling Contest Poll is up!
    Dismiss Notice
  6. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

How to: Attach a Model or an Effect to a Unit

Discussion in 'General Mapping Tutorials' started by Archian, Nov 19, 2006.

Thread Status:
Not open for further replies.
  1. Archian


    Site Director

    Jan 1, 2006
    How to: Attach a Model or an Effect to a Unit
    By Archian

    Have you ever wanted a Dreadlord to attack with a sword? Or a unit actually getting an item (like an axe, sword etc.) viewable on the model ingame? This tutorial is about how to attach models/effects to a unit.

    You can download attachment models here at Wc3Campaigns model section, to be more specific here are some examples of cool downloadable attachment models.

    Note,You don't have to download a model or an effect to attach an effect or a model to a unit.
    There are models and effects within the editor you can use.

    Notice, there are also different ways to add the effect to the unit. You can for instance use an ability, a trigger or an item for that matter.

    Using an Ability

    NOTE - Im using the Rexxar Missle model in this toturial as the attachment.

    Make a "dummy" ability to create the model effect.
    Use an ability like Armor Bonus +1, this ability does not show an icon on the hero and it's very easy to change.

    • Change the armor bonus to 0, so it doesn't add + 1 armor.
    • Change the Art - Target field to your new model or effect file.
    • Change the Art - Target Attachment Point 1 and add the point where you wan't the model/effect.
    • Change the Art - Target Attachments to the number of points you added.
    • Change Item Ability to false, so we can attach it to a unit or a hero.

    The fields you need to change are shown bellow.


    Using a Trigger
    You can also just use a trigger to attach a model/effect to a unit (shown bellow).
    • Attach Axe to Left Hand
      • Events
        • Map initialization
      • Conditions
      • Actions
        • Special Effect - Create a special effect attached to the left hand of (Triggering unit) using Abilities\Weapons\RexxarMissile\RexxarMissile.mdl

    Using an Item
    For RPG (role playing games) such as Diablo, characters picks up various weapons through the game for combat use.
    In warcraft, there's items aswell but unlike in Blizzard's Diablo, they don't appear on the unit when using it.

    However, you can use an item to attach a model/effect to a unit to achive this "special" effect.

    • Instead of a ability, change the ability to an item ability (the field shown bellow)
      (Click to enlarge)
    • Add the item ability to the item you wish. Then when the unit/hero etc. picks up the item, the attachment model will be shown at point you choose by using an attachment name.

    Here are some of the attachment names you can use to attach a model or an effect to a unit.

    Attachment Names:
    • overhead
    • head
    • chest
    • origin
    • hand
    • foot
    • weapon (for heroes, and some units)
    • sprite (for buildings)
    • medium (for buildings)
    • large (for buildings)
    • left
    • right
    • mount (for mounted units)
    • rear
    • first (for buildings)
    • second (for buildings)
    • third (for buildings)
    • fourth (for buildings)
    • fifth (for buildings)
    • sixth (for buildings)
    • rallypoint (for buildings)
    Last edited by a moderator: Jun 5, 2007
  2. PurgeandFire


    Code Moderator

    Nov 11, 2006
    Nice. This tutorial is great and especially is great because it will help many people. Good job, +rep :emote_grin:
    [Note: To be more specific, here are all the attachment points:
    • Overhead
    • Head
    • Chest
    • Origin
    • Hand
    • Foot
    • Weapon
    • Sprite
    • Medium
    • Large
    • Right Hand
    • Left Hand
    • Right Foot
    • Left Foot
    • Front Right Foot (Animals)
    • Front Left Foot (Animals)
    • Back Right Foot (Animals)
    • Back Left Foot (Animals)
    • First Sprite (Buildings)
    • Second Sprite (Buildings)
    • Third Sprite (Buildings)
    • Fourth Sprite (Buildings)
    • Fifth Sprite (Buildings)
    • Sixth Sprite (Buildings)
    • Rallypoint Sprite (Buildings)
    • First Medium (Buildings)
    • Second Medium (Buildings)
    • Third Medium (Buildings)
    • Fourth Medium (Buildings)
    • Fifth Medium (Buildings)
    • Sixth Medium (Buildings)
    • Rallypoint Medium (Buildings)
    • First Large (Buildings)
    • Second Large (Buildings)
    • Third Large (Buildings)
    • Fourth Large (Buildings)
    • Fifth Large (Buildings)
    • Sixth Large (Buildings)
Thread Status:
Not open for further replies.