|
[trigger]
function CreateUnit takes player P,integer Uid,location point,integer angel,location targetpoint,integer num returns nothing
    local unit u
    local integer i
    loop
        set i=i+1
        exitwhen i>num
        set u=CreateUnitAtLoc(P,Uid,point,angel)
        call IssuePointOrderLoc( GetLastCreatedUnit(), "patrol", targetpoint )
        set u=null
    endloop
    call RemoveLocation( point )    
    call RemoveLocation( targetpoint )
endfunction
[/trigger] |
|