• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

How to {Adding an attachment to unit using triggers}

Status
Not open for further replies.
Level 5
Joined
Aug 16, 2010
Messages
97
You mean you need the SFX to move with the unit? I think this is what you need:
  • GUI
    • Events
      • Player - Player 1 (Red) skips a cinematic sequence
    • Conditions
    • Actions
      • Special Effect - Create a special effect attached to the ATTACH_POINT of u using MODEL_PATH
or

  • SemiGUI
    • Events
      • Player - Player 1 (Red) skips a cinematic sequence
    • Conditions
    • Actions
      • Custom script: set udg_SFX = AddSpecialEffectTarget(MODEL_PATH, udg_u, ATTACH_POINT)
ATTACH_POINT what the name suggests, where the SFX is attached. You can use: "overhead", "chest", "origin", "hand", "weapon", etc. (It's a string)
MODEL_PATH is the address of your SFX. Also a string it is.
 
Level 1
Joined
Sep 23, 2011
Messages
3
  • Untitled Trigger 001
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Special Effect - Create a special effect attached to the origin of (Your Unit) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
:D
 
Status
Not open for further replies.
Top