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

[JASS] questions about summoned units

Status
Not open for further replies.
Level 3
Joined
Sep 14, 2007
Messages
43
1. how do i create a summoned unit with jass code?
2. if my hero summoned 2 units how do i get both of them with getsummoned unit?
3. how do i set the remaining time of the summoned unit with code, is it even possible?
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
  • You can not create a summoned unit via triggers, you can use jass triggers though to emulate one.
  • If your hero summons 2 units, each unit will fire the trigger separatly as they are summoned and so you can only refer to that unit and not any other summoned unit.
  • You can set the remaining time of a summoned unit in GUI even. There is a function that lets you set the expiration timer duriation and even type.
 
Level 3
Joined
Sep 14, 2007
Messages
43
1. when you say emulate do you mean create a normal unit and delete it after a certain amount of time? or can i also emulate the blue line that desplays the remaining time of the summoned unit?
2. thanks
3. thanks
 
Level 8
Joined
Jul 23, 2005
Messages
329
I believe he means you can do both. If you want the blue bar, just add an expiry timer onto a created unit, like you would do in GUI.
 
Status
Not open for further replies.
Top