GetForceOfPlayer

Parameters
whichPlayer player
bug

Leaks handle f: In Jass you must set local variables that hold agents (or any child type) to null at the end of functions to avoid reference counter leaks.

comment

Creates a new force to include the target player.

note

Creates a new force object and returns it. The caller must remove it on its own after use.

return type
force
Source code
function GetForceOfPlayer takes player whichPlayer returns force
    local force f = CreateForce()
    call ForceAddPlayer(f, whichPlayer)
    return f
endfunction
Source
Blizzard.j
wc3modding.com
GetForceOfPlayer