RescueUnitBJ
- Parameters
-
whichUnit unit
rescuer player
changeColor boolean
- comment
- patch
1.00
- Source
- Blizzard.j
- return type
nothing
- Source code
function RescueUnitBJ takes unit whichUnit, player rescuer, boolean changeColor returns nothing if IsUnitDeadBJ(whichUnit) or (GetOwningPlayer(whichUnit) == rescuer) then return endif call StartSound(bj_rescueSound) call SetUnitOwner(whichUnit, rescuer, changeColor) call UnitAddIndicator(whichUnit, 0, 255, 0, 255) call PingMinimapForPlayer(rescuer, GetUnitX(whichUnit), GetUnitY(whichUnit), bj_RESCUE_PING_TIME) endfunction