1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still haven't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. Ride into the sunset with the 32nd Modeling Contest. The contest is optionally paired. Best of luck, people!
    Dismiss Notice
  4. This adventure has come to an end. Congratulate our heroes in the 16th Mini Mapping Contest Results.
    Dismiss Notice
  5. From the gates of hell, the 5th Special Effect Contest Results have emerged.
    Dismiss Notice
  6. Race against the odds and Reforge, Don't Refund. The 14th Techtree Contest has begun!
    Dismiss Notice
  7. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

I need help with a trigger...

Discussion in 'World Editor Help Zone' started by Res.G-Virus, Aug 2, 2009.

  1. Res.G-Virus

    Res.G-Virus

    Joined:
    Jul 3, 2008
    Messages:
    22
    Resources:
    0
    Resources:
    0
    I need help, with playing a sound, whenever a type of unit attacks.
    I just can't figure it out, :confused:
    Someone please help me soon, i want to continue on my map.
     
  2. Link_Iceblader

    Link_Iceblader

    Joined:
    Jul 12, 2007
    Messages:
    114
    Resources:
    0
    Resources:
    0
    I'd be glad to help you, but your post here doesn't tell me anything about your problem. Please clarify your problem so i can help you solve it.
    If all you need is a trigger which plays a sound whenever a unit type attacks, this might help you:

    • Sound
      • Ereignisse
        • Einheit - A unit Wird angegriffen
      • Bedingungen
        • (Unit-type of (Attacking unit)) Gleich unittype
      • Aktionen
        • Sound - Play sound
     
  3. madqc

    madqc

    Joined:
    May 3, 2009
    Messages:
    214
    Resources:
    0
    Resources:
    0
    I translated it in english cause he might not understand it

    • Unit Attack Sound
      • Events
        • Unit - A unit Is attacked
      • Conditions
        • (Unit-type of (Attacking unit)) Equal to Unit
      • Actions
        • Sound - Play Sound
     
  4. Res.G-Virus

    Res.G-Virus

    Joined:
    Jul 3, 2008
    Messages:
    22
    Resources:
    0
    Resources:
    0
    thanks alot, but i can't get it to say, unit, after it says, equal to;
    (unit-type of (attacking unit)) Equal to: ??!?!?!
    it wont let me put, just unit
    :angry:
     
  5. jasonongsip

    jasonongsip

    Joined:
    Jul 3, 2009
    Messages:
    31
    Resources:
    0
    Resources:
    0
    • Unit Attack Sound
      • Events
        • Unit - A unit Is attacked
      • Conditions
        • (Unit-type of (Attacking unit)) Equal to <The "kind of" unit you want the sound to come from.>
      • Actions
        • Sound - Play Sound <what sound you want to hear when the unit attacks


    If you want to hear the sound REGARDLESS what unit attacks, dont put any condition anymore so it becomes:


    • Unit Attack Sound
      • Events
        • Unit - A unit Is attacked
      • Conditions
      • Actions
        • Sound - Play Sound <what sound you want to hear when the unit attacks


    Hope this helps. :p
     
    Last edited: Aug 5, 2009