19 posts Chico, CA joined 2004-09-10
#1 2004-09-22
What does BJ mean in blizzard function names? I can't figure out what the BJ means in Functions like
unitAddAbilityBJ
why is it different than
unitAddAbility
Thanks,
235 posts Finland joined 2004-06-16
#2 2004-09-23
From Blizzard.j:
function UnitAddAbilityBJ takes integer abilityId, unit whichUnit returns boolean
return UnitAddAbility(whichUnit, abilityId)
endfunctionBJ version takes variables in a reversed order. I think it has something to do with how the World Editor GUI is programmed.
BJ means that the function is located in Blizzard.j and is not a native function.
29 posts joined 2004-04-13
#3 2004-09-25
Most of the time it is better to avoid the BJ functions and use the natives directly.
19 posts Chico, CA joined 2004-09-10
#4 2004-09-27
The triggers tend to use the BJ functions. I wish you had a better explanation.
29 posts joined 2004-04-13
#5 2004-09-27
Well, I don't know how to explain that better but GUI actions require that the variables in the text are in the same order as the function it calls.
That is why there are many BJ functions that just change the order of the variables.