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

Adding sound to a basic attack.

Status
Not open for further replies.
Level 2
Joined
Jun 29, 2008
Messages
9
  • Sniper Sound against unit
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Unit-type of (Attacking unit)) Equal to Ghost
    • Actions
      • Wait 0.03 seconds
      • Sound - Play rifle <gen> at 90.00% volume, attached to (Attacking unit)
      • Wait 2.00 seconds
When the unit starts to attack without being in range it does the rifle sound. How can I trigger this so that it does the sound only when the Ghost (marine sniper) shoots?
 
Level 9
Joined
Jul 24, 2007
Messages
308
change the event
event - unit issued targeting an (object) (you must make conditions so that the game doesnt crash because of an infinity loop)
or
event - unit starts channeling an ability (condition its attack)

thats the way i know, though im not sure of it.
 
Level 2
Joined
Jun 29, 2008
Messages
9
I tried them and it doesnt work since my attack is not an ability (its just a sniper shooting his gun)

I also wanted to know how to make an ability the main attackof a unit. ex: a zombie attacks which casts automatically the ability.
 
Level 2
Joined
Jun 29, 2008
Messages
9
Well i have an ability that gives the marine his rifle with a missile effect. I guess its an ability then but it doesnt work when i trigger it like an ability.
 
Level 2
Joined
Jun 29, 2008
Messages
9
I used an orb ability to create my weapon ability. I added a missile to this orb ability and i change the model from the orb to the sniper rifle.
 
Status
Not open for further replies.
Top