[JASS] What does BJ mean in blizzard function names?

Status
Not open for further replies.
Level 2
Joined
Sep 10, 2004
Messages
19
I can't figure out what the BJ means in Functions like
unitAddAbilityBJ

why is it different than
unitAddAbility

Thanks,
 
From Blizzard.j:

Code:
function UnitAddAbilityBJ takes integer abilityId, unit whichUnit returns boolean
    return UnitAddAbility(whichUnit, abilityId)
endfunction
BJ 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.
 
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.
 
Status
Not open for further replies.
Back
Top