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