• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

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 ?
 
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.
 
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.
Back
Top