8uY_YoU
New Member
- Reaction score
- 4
Why we should do that?
call AddSpecialEffectLocBJ() //BJ version, we'll call this (1)
call AddSpecialEffectLoc() //Native version, we'll call this (2)
Except for the fact that doing the BJ one(1) just calls upon the native one(2).
So instead of calling upon a function(1) that calls upon another function(2);
Why not just call upon (2) itself.
There are some BJ's that are okay though;
Or that are just easier since the native version has like 50 lines.
Although if you're just starting out that may get confusing so I won't say anything .
function IsUnitAliveBJ takes unit u returns boolean
return not IsUnitDeadBJ(u)
endfunction
function IsUnitDeadBJ takes unit u returns boolean
return GetUnitState(u, UNIT_STATE_LIFE) <= 0
endfunction
IsUnitType(u, UNIT_TYPE_DEAD) == false
function UnitId2OrderIdBJ takes integer unitId returns integer
return unitId
endfunction
The funniest BJ has to be this one:
function CommentString takes string commentstring returns nothing
endfunction