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

Order last created unit (O.o)?

Status
Not open for further replies.
Level 9
Joined
Mar 31, 2011
Messages
496
I can't find anything like this in the triggers.

How can I order last created unit to use its abilities?
Like
  • Create 1 ThunderClap Dummy Unit at Point1 facing bla bla bla...
  • Order - last created unit to thunderclap
  • add generic timer to last created unit.
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
What mckill said was
1. Go to Object Editor
2. Abilities tab
3. Go to "Text - Order String - Use/Turn On" field
4. Check its Ability ID String

In this case, your Order String is "thunderclap", which in GUI...
  • Unit - Order (Last created unit) to Human Mountain King - Thunder Clap
You can also use Custom script:
  • Custom script: call IssueImmediateOrder(GetLastCreatedUnit(), "thunderclap")
You can create as many custom abilities as you want, but its Order String never can be replaced by other than default Blizzard's Order String
Some ability, you can modify its Order String (eg: Channel)
 
Status
Not open for further replies.
Top