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

Custom Script All Units names

Status
Not open for further replies.
Level 4
Joined
Jan 1, 2016
Messages
77
What are ALL script units names ? For example: call SetUnitAnimationByIndex(udg_variable, X) but what IF I don't have any variable and I want to use the Event Response unit ?
 
Level 10
Joined
May 28, 2011
Messages
455
Possible just by using GetTriggerUnit() or etc as parameter. This is not recommended because of leak for local variable only. Use global variable should be fine. Ctrl + B, create a variable with unit as type.

Mind sharing what you are trying to accomplish here.
 
Level 6
Joined
Apr 15, 2016
Messages
118
Trying to getanimationbyindex custom script for an ordered unit but I can't set a varaible (just believe me, I can't).

Sorry FiremanBO is my acc too. There is an idiot (not me) using Hiveworkshop in my computer. Probably this was the reason I got banned...
 
Possible just by using GetTriggerUnit() or etc as parameter. This is not recommended because of leak for local variable only. Use global variable should be fine. Ctrl + B, create a variable with unit as type.

GetTriggerUnit() would not leak o.o call SetUnitAnimationByIndex(GetTriggerUnit(), 'BLAH') would work perfectly fine, it just looks ugly.
 
Status
Not open for further replies.
Top