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

Trigger-special-help(lightsaber)

Status
Not open for further replies.
Level 6
Joined
Sep 19, 2006
Messages
179
I want to make a trigger.
But I don't know how it will be,so I need your help.
When I train a unit(in a Barracks),the footman/knight/rifleman is out.I want to create a trigger that when I train one of the 3 units,I want them to have a lightsaber when they are trained.How would the trigger look like?
 
This should do the trick

Code:
Lightsaber Attachment
    Events
        Unit - A unit Finishes training a unit
    Conditions
        Or - Any (Conditions) are true
            Conditions
                (Unit-type of (Trained unit)) Equal to Footman
                (Unit-type of (Trained unit)) Equal to Knight
                (Unit-type of (Trained unit)) Equal to Rifleman
    Actions
        Special Effect - Create a special effect attached to the left hand of (Trained unit) using LightsaberPath.mdl
 
Status
Not open for further replies.
Top