The search keyword must be a single word (no spaces).

Function CreateUnitAtLocSaveLast

Line
3371
Location
blizzard.j
Constant?
no
Type
function
Arguments
player id, integer unitid, location loc, real face
Returns
unit
3371
function CreateUnitAtLocSaveLast takes player id, integer unitid, location loc, real face returns unit
3372
    if (unitid == 'ugol') then
3373
        set bj_lastCreatedUnit = CreateBlightedGoldmine(id, GetLocationX(loc), GetLocationY(loc), face)
3374
    else
3375
        set bj_lastCreatedUnit = CreateUnitAtLoc(id, unitid, loc, face)
3376
    endif
3377
3378
    return bj_lastCreatedUnit
3379
endfunction