• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Play Sound Help?

Status
Not open for further replies.
Level 3
Joined
Jun 28, 2018
Messages
36
Hi could somebody please show me how to write a trigger to play

a sound on a unit as it attacks because the problem I am having is that

the tower that I am busy making is a flame thrower so to get the flame

thrower to appear correctly I have had to add (breath of fire) to the unit

by its default active ability and then set its projectile art to NONE because

if I set projectile art to breath of fire then it does not appear correctly in the

game but I found that by putting it by default active ability and setting

projectile art to NONE it works perfectly but now the effect is not making

any sound so I tried to write a trigger to play the sound of an effect on the

unit as it attacks but I can’t get it to work so if somebody could show me what

the trigger should look like that would be great, please, thank you.
 
Level 8
Joined
Jun 13, 2012
Messages
336
  • Untitled Trigger 001
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Breath of Fire
    • Actions
      • Sound - Play BreathOfFire1 <gen> at 100.00% volume, attached to (Triggering unit)
import the sound in sound editor from Abilities>Spells>Others>Breath of Fire
 
Level 3
Joined
Jun 28, 2018
Messages
36
Hi thank you for replying but that trigger is not working I tried it exactly the way
you showed, is there any other suggestions?
 
Level 3
Joined
Jun 28, 2018
Messages
36
Hi I figured out why the trigger is not working, it is because the

model file that I chose is Space Fel Orc and with that model file

even if you set the projectile art to NONE when the unit attacks

the animation of the model file still shows a flame coming out of

the gun which is the way I had it set and I thought that it was showing

that flame because I had its default active ability set to Breath Of Fire

but that is not what Breath Of Fire looks like at all the Breath Of Fire

was not even activating at all, I don’t know but I don’t think a

person can use Breath Of Fire by setting it in the default active ability.

So the trigger is saying that when (a unit starts the effect of an ability)

play sound etc... but there is no effect of any ability starting.

sorry about that and thanks again for the reply, I am just going to use

a different model file and different projectile art.
 
Level 39
Joined
Feb 27, 2007
Messages
5,037
if you set the projectile art to NONE
The way wc3 works, generally, is that for things that have to have a model... if you delete the model entirely it will use whatever the default is. Abilities do this too with buffs, and buffs with their art. If you want to use a no model projectile then type something like "none.mdl" into the model field so it attempts to load a nonexistant model and thus shows nothing.
 
Status
Not open for further replies.
Top