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 havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. The 18th Icon Contest is ON! Choose any ingame unit and give him/her Hero abilities. Good luck to all.
    Dismiss Notice
  4. The Secrets of Warcraft 3 have revealed interesting works. The RESULTS for Abelhawk's Mini-Mapping Contest #15 have come out!
    Dismiss Notice
  5. Contestants are to create a scene set in the Stone Age. Come and see what you can come up with. We wish you the best of luck!
    Dismiss Notice
  6. Colour outside the lines! Techtree Contest #13 is a go. The contest is optionally paired.
    Dismiss Notice
  7. Night Rider gained several songs for his journey. The poll for the 12th Music Contest has started. Check it out!
    Dismiss Notice
  8. Greetings cerebrates, our Swarm needs new spawners that will have numerous children. Join the HIVE's 31st Modeling Contest - Spawners and Spawned! The contest is optionally paired.
    Dismiss Notice
  9. Join other hivers in a friendly concept-art contest. The contestants have to create a genie coming out of its container. We wish you the best of luck!
    Dismiss Notice
  10. 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

    Archian

    Site Director

    Joined:
    Jan 1, 2006
    Messages:
    2,768
    Resources:
    12
    Skins:
    1
    Tutorials:
    11
    Resources:
    12
    How to: Attach a Model or an Effect to a Unit
    By Archian

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

    ability.jpg

    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)
      item.jpg
      (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

    PurgeandFire

    Code Moderator

    Joined:
    Nov 11, 2006
    Messages:
    7,427
    Resources:
    18
    Icons:
    1
    Spells:
    4
    Tutorials:
    9
    JASS:
    4
    Resources:
    18
    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)
    Lol...]
     
Thread Status:
Not open for further replies.