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

Attaching a weapon to a weaponless model?

Status
Not open for further replies.
Level 13
Joined
Feb 18, 2009
Messages
1,381
Hello. I was wondering, how do i attach a weapon to a weaponless model?

I used Master Chief (Weaponless) and downloaded the weapon pack "Halo2Weaponpack" (And imported "AssaultRifle")
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
Create a passive item ability that doesn't do anything (such as +0 armor) and give it thw weapon model as art.
Then set the attachment point to "hand,left" or "hand,right" (or "weapon" if that one exists for your model).
When you're done, you can add the ability to the item you want and whenever someone picks up that item, the weapon model will appear.

Otherwise (if you do it without items), you can use a trigger that looks like:
  • Special Effect - Create a special effect on [your unit] on hand,right with as model assault rifle
I can't access the world editor, but it should look something like this ^^

If you want to remove the weapon later on, create a variable called "weaponeffect" (type: special effect) and add the line "Set weaponeffect = (Last created special effect)" behind the previous trigger.
When you want to remove it, use the action:
  • Special Effect - destroy weaponeffect
 
Level 13
Joined
Feb 18, 2009
Messages
1,381
Apocalypse, thanks :)

EDIT :
When i used it on my second model, it didn't work.

  • RifleAssault
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Special Effect - Create a special effect attached to the hand,right of Marine 0000 <gen> using war3mapImported\AssualtRiflepickup.mdx
      • Set UnitKilledSpecialEffect = (Last created special effect)
 
Status
Not open for further replies.
Top