wc3campaigns
WC3C Homepage - www.wc3c.netUser Control Panel (Requires Log-In)Engage in discussions with other users and join contests in the WC3C forums!Read one of our many tutorials, ranging in difficulty from beginner to advanced!Show off your artistic talents in the WC3C Gallery!Download quality models, textures, spells (vJASS/JASS), systems, and scripts!Download maps that have passed through our rigorous approval process!

Go Back   Wc3C.net > Tutorials > General Mapping Tutorials
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 04-15-2006, 11:03 AM   #1
Archian
Dark & Ominous
 
Archian's Avatar


Project Leader: LoC
 
Join Date: Apr 2006
Posts: 1,465

Submissions (27)

Archian is a glorious beacon of light (477)Archian is a glorious beacon of light (477)Archian is a glorious beacon of light (477)Archian is a glorious beacon of light (477)

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

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.

Zoom (requires log in)
This image was taken from the Lightsaber Attachment Pack By Illidan(evil)x

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.

Zoom (requires log in)

Using a Trigger
You can also just use a trigger to attach a model/effect to a unit (shown bellow).
Trigger:
Attach Axe to Left Hand
Collapse Events
Map initialization
Conditions
Collapse 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)
    Zoom (requires log in)
  • 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)
Attached Images
File Type: png useinganability7bd.png (2.0 KB, 1574 views)
File Type: png useinganitem5uv.png (409 Bytes, 1305 views)

Last edited by Archian : 02-09-2007 at 11:05 PM.
Archian is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 04-24-2006, 01:29 AM   #2
black-blur
User
 
black-blur's Avatar
 
Join Date: Apr 2006
Posts: 3

black-blur has little to show at this moment (0)

Question help?

ive tried your way again and again but every time i play the map the whole maps white and i cant see anything. got any ideas?
black-blur is offline   Reply With Quote
Old 05-18-2006, 01:39 PM   #3
Lord_of_heaven
User
 
Lord_of_heaven's Avatar
 
Join Date: Mar 2006
Posts: 56

Lord_of_heaven has a little shameless behaviour in the past (-1)

Default

i want to put only a weapon in the hand not the missile how do we do this
__________________
,.-~*´¨¯¨`*~*.,lich king,.-~*´¨¯¨`*~*.,
Lord_of_heaven is offline   Reply With Quote
Old 05-22-2006, 07:23 PM   #4
moyack
Evil Emoticon
 
moyack's Avatar


Respected User
Project Leader: PoC
 
Join Date: Jan 2006
Posts: 3,279

Submissions (17)

moyack is a splendid one to behold (666)moyack is a splendid one to behold (666)moyack is a splendid one to behold (666)moyack is a splendid one to behold (666)

AI Tournament #2 - 2nd PlaceHero Contest - Second place

Send a message via MSN to moyack
Default

As an addition to this tutorial, if you want to put an attachment that you will throw (in this case the Rexxar Axe), I recommend to use the ability "sphere". This ability has the advantage of dissapear the attached model in the first attachment point when the unit attack. It's very useful if you want to give the idea that the unit has something in his hand and he throws it to the enemy in order to attack. When the missile gets the enemy, this attachment appears again in the first attachment point.

Quote:
Originally Posted by Archian
weapon (for heroes)
This attachment name can be used in non hero units too.

Last edited by moyack : 07-31-2006 at 11:45 PM.
moyack is offline   Reply With Quote
Old 06-22-2006, 03:59 AM   #5
Vexorian
Free Software Terrorist
 
Vexorian's Avatar


Technical Director
 
Join Date: Apr 2003
Posts: 14,898

Submissions (37)

Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)

Hero Contest #3 - 2nd Place

Default

Some models don't have attachment points . Some models don't have some attachment points. So if you try to attach something to a unit that is using a model that misses the attachment point in question, the special effect won't show up.
__________________
Zoom (requires log in)Wc3 map optimizer 5.0
Someone should fix .wav sound in this thing.
Zoom (requires log in)JassHelper 0.A.2.A
Turns your simple code into something that is complicated enough to work.
Faster != more useful
Vexorian is offline   Reply With Quote
Old 08-31-2006, 07:28 PM   #6
barryburton
User
 
Join Date: May 2006
Posts: 39

barryburton has little to show at this moment (4)

Default

how do you remove a model/effect?
barryburton is offline   Reply With Quote
Old 10-15-2006, 12:20 AM   #7
swb90
User
 
Join Date: Apr 2006
Posts: 12

swb90 has little to show at this moment (0)

Default

erm sorry if im noob but i wan to know how i can attach multiple attachments to a single model? it makes it look kind of cool XD but i hav no clue how to do it. can some1 help please T.T
swb90 is offline   Reply With Quote
Old 11-19-2006, 06:47 PM   #8
R-ini
Banned
 
R-ini's Avatar
 
Join Date: Nov 2006
Posts: 26

R-ini has a little shameless behaviour in the past (-1)

Default

Thank you.Your tutorial is appreciated.You are going to be rated.
Quote:

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.
How do you suppose to attach the model to the unit?

Last edited by R-ini : 11-19-2006 at 06:55 PM.
R-ini is offline   Reply With Quote
Old 11-19-2006, 07:04 PM   #9
Archian
Dark & Ominous
 
Archian's Avatar


Project Leader: LoC
 
Join Date: Apr 2006
Posts: 1,465

Submissions (27)

Archian is a glorious beacon of light (477)Archian is a glorious beacon of light (477)Archian is a glorious beacon of light (477)Archian is a glorious beacon of light (477)

Default

Give the ability to the unit you wish to attach the model/effect to.
Sorry, I'm not quite sure I understand your question.

EDIT:

Tutorial has been updated!

Last edited by Archian : 11-19-2006 at 07:32 PM.
Archian is offline   Reply With Quote
Old 11-23-2006, 09:08 PM   #10
Blaise
User
 
Join Date: Nov 2006
Posts: 1

Blaise has little to show at this moment (0)

Question Help With New additition

Hey, i'm a Noob Map builder here,
I have a question: Where do you put the files (the items and weapons i just downloaded) and/or where do you find them from the world editor???


Thanks aton in advance,

~Blaise~

Last edited by Blaise : 11-23-2006 at 09:25 PM.
Blaise is offline   Reply With Quote
Old 11-24-2006, 04:02 AM   #11
AllStarZ
User
 
Join Date: Nov 2006
Posts: 85

AllStarZ has little to show at this moment (1)

Default

Import Manager, look up section on importing models in World Editor.
AllStarZ is offline   Reply With Quote
Old 12-24-2006, 06:39 AM   #12
IrkedPlatypus
User
 
IrkedPlatypus's Avatar
 
Join Date: May 2006
Posts: 72

Submissions (1)

IrkedPlatypus has little to show at this moment (1)

Default

Quote:
Originally Posted By Archian
just a comment, please practise your english.
um... lol?
practise? okay im done. good tut, though you took that picture from wc3 tutorials.
__________________
Projects:
Hidden information:
Hidden information:

Platypus Hero Defence
Terrain: |||||||||| 100%
Heroes: ||||||||||
Levels: ||||||||||
Items: ||||||||||
Other Triggers: |||||||||| 100%
Hidden information:

Ghostly Escape
Levels: ||||||||||
Secrets: ||||||||
Items: ||||||||||
Other Triggers: ||||||||||
Ideas: ||||||||||
IrkedPlatypus is offline   Reply With Quote
Old 12-24-2006, 07:49 AM   #13
Archian
Dark & Ominous
 
Archian's Avatar


Project Leader: LoC
 
Join Date: Apr 2006
Posts: 1,465

Submissions (27)

Archian is a glorious beacon of light (477)Archian is a glorious beacon of light (477)Archian is a glorious beacon of light (477)Archian is a glorious beacon of light (477)

Default

Quote:
Originally Posted by IrkedPlatypus
um... lol?
practise? okay im done. good tut, though you took that picture from wc3 tutorials.
Huh ...

Anyway, yeah I was too lazy to make my own so I just used that one as a temporary replacement. But I will change it :P

Stay tunned

Cheers,
~Archian.

Last edited by Archian : 12-24-2006 at 07:53 AM.
Archian is offline   Reply With Quote
Old 12-26-2006, 12:03 PM   #14
Leopard
Banned
 
Join Date: May 2006
Posts: 222

Submissions (6)

Leopard seems to be the reincarnation of TerranUp16 (-100)Leopard seems to be the reincarnation of TerranUp16 (-100)Leopard seems to be the reincarnation of TerranUp16 (-100)Leopard seems to be the reincarnation of TerranUp16 (-100)

Send a message via Yahoo to Leopard
Default

cool tuto. i understand wat u said, im going to try it to night[ im sure it will work]. This is really what i need, friend.
Leopard is offline   Reply With Quote
Old 01-01-2007, 09:27 PM   #15
Deniedforrpg
User
 
Join Date: Jan 2007
Posts: 2

Deniedforrpg has little to show at this moment (0)

Question

Do militias have attachments? And do you need to do anything with the unit first?
Deniedforrpg is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 03:57 AM.


Affiliates
The Hubb The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

Powered by vBulletin (Copyright ©2000 - 2019, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services