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

[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,
 
Level 6
Joined
Jun 16, 2004
Messages
237
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.
 
Level 2
Joined
Apr 13, 2004
Messages
29
Most of the time it is better to avoid the BJ functions and use the natives directly.
 
Level 2
Joined
Apr 13, 2004
Messages
29
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.
Top