Karos Graveyard ::
Function Reference :: Scope Reference :: Variable Reference
Player_FillProximitySobGroup(<sSobGroupNameOut>, <iPlayerIndex>, <sSobGroupName>, <fDistance>)

Description
Puts all active ships belonging to <iPlayerIndex> that are within <fDistance> of <sSobGroupName> into <sSobGroupNameOut>.
Returns true if there is at least one ship in <sSobGroupNameOut>; false if there is none.
Note: if sSobGroupName belongs to iPlayerIndex, it is put in sSobGroupNameOut. --SunTzu

Examples
Player_FillProximitySobGroup("tempSobGroup", 0, "Patrol"..i, 5000)
if (Player_FillProximitySobGroup("tempSobGroup", 0, "EnemyCarrier", 5000) == 1) then
...code...
end

Arguments
<sSobGroupNameOut>: the name of the sobgroup to place ships into. This sobgroup must be created before the function is called.
<iPlayerIndex>: the index number of the player.
<sSobGroupName>: the name of the sobgroup to check the distance against.
<fDistance>: the distance (radius) from <sSobGroupName> that ships must lie within.

Related Pages:
:: ::
Hide Download Bar
Ctrl + Shift + Z = Show/Hide Download Bar
Downloads
Download Manager (S3)
Clear
Left Click: Clear All Finished
Right Click: Undo last clear
100%
Download History
Download list is empty
FunctionPlayer_GrantAllResearch.html
100%
--:--
496 KB
-.--
FunctionPlayer_GrantAllResearch.html
Source:
From:
To:
G:\HWRMResources\tutorials\hw2wiki.net\Functions_StandAlone\FunctionPlayer_GrantAllResearch.html
Status:
496 KB / 496 KB ( -.-- )
File Size:
496 KB
Virus scan:
Time Start:
2019.08.22 - 00:53:42
Time to Complete:
00:02
Time Left:
--:--
Percent Done:
100%
Average Speed:
269 KB/s
mouse double click: download pause/resume
mouse middle click: download cancel
mouse double click: open file
mouse double click + Ctrl: open dir
mouse middle click: delete from list
mouse middle click + Ctrl: delete from system
press mouse button + Ctrl: drag & drop
FunctionPlayer_GetShipsByType.html
100%
00:00
496 KB
1.11 MB/s
FunctionPlayer_GetShipsByType.html
Source:
From:
To:
G:\HWRMResources\tutorials\hw2wiki.net\Functions_StandAlone\FunctionPlayer_GetShipsByType.html
Status:
496 KB / 496 KB ( 1.11 MB/s )
File Size:
496 KB
Virus scan:
Time Start:
2019.08.22 - 00:53:52
Time to Complete:
<00:01
Time Left:
00:00
Percent Done:
100%
Average Speed:
1.06 MB/s
mouse double click: download pause/resume
mouse middle click: download cancel
mouse double click: open file
mouse double click + Ctrl: open dir
mouse middle click: delete from list
mouse middle click + Ctrl: delete from system
press mouse button + Ctrl: drag & drop
FunctionPlayer_GetRU.html
100%
00:00
496 KB
1.79 MB/s
FunctionPlayer_GetRU.html
Source:
From:
To:
G:\HWRMResources\tutorials\hw2wiki.net\Functions_StandAlone\FunctionPlayer_GetRU.html
Status:
496 KB / 496 KB ( 1.79 MB/s )
File Size:
496 KB
Virus scan:
Time Start:
2019.08.22 - 00:54:03
Time to Complete:
<00:01
Time Left:
00:00
Percent Done:
100%
Average Speed:
1.70 MB/s
mouse double click: download pause/resume
mouse middle click: download cancel
mouse double click: open file
mouse double click + Ctrl: open dir
mouse middle click: delete from list
mouse middle click + Ctrl: delete from system
press mouse button + Ctrl: drag & drop
FunctionPlayer_GetRace.html
100%
00:00
496 KB
291 KB/s
FunctionPlayer_GetRace.html
Source:
From:
To:
G:\HWRMResources\tutorials\hw2wiki.net\Functions_StandAlone\FunctionPlayer_GetRace.html
Status:
496 KB / 496 KB ( 291 KB/s )
File Size:
496 KB
Virus scan:
Time Start:
2019.08.22 - 00:54:12
Time to Complete:
00:02
Time Left:
00:00
Percent Done:
100%
Average Speed:
289 KB/s
mouse double click: download pause/resume
mouse middle click: download cancel
mouse double click: open file
mouse double click + Ctrl: open dir
mouse middle click: delete from list
mouse middle click + Ctrl: delete from system
press mouse button + Ctrl: drag & drop
FunctionPlayer_GetNumberOfSquadronsOfTypeAwakeOrSleeping.html
100%
00:00
496 KB
854 KB/s
FunctionPlayer_GetNumberOfSquadronsOfTypeAwakeOrSleeping.html
Source:
From:
To:
G:\HWRMResources\tutorials\hw2wiki.net\Functions_StandAlone\FunctionPlayer_GetNumberOfSquadronsOfTypeAwakeOrSleeping.html
Status:
496 KB / 496 KB ( 854 KB/s )
File Size:
496 KB
Virus scan:
Time Start:
2019.08.22 - 00:54:22
Time to Complete:
00:01
Time Left:
00:00
Percent Done:
100%
Average Speed:
837 KB/s
mouse double click: download pause/resume
mouse middle click: download cancel
mouse double click: open file
mouse double click + Ctrl: open dir
mouse middle click: delete from list
mouse middle click + Ctrl: delete from system
press mouse button + Ctrl: drag & drop
FunctionPlayer_GetName.html
100%
00:00
498 KB
1.91 MB/s
FunctionPlayer_GetName.html
Source:
From:
To:
G:\HWRMResources\tutorials\hw2wiki.net\Functions_StandAlone\FunctionPlayer_GetName.html
Status:
498 KB / 498 KB ( 1.91 MB/s )
File Size:
498 KB
Virus scan:
Time Start:
2019.08.22 - 00:54:31
Time to Complete:
<00:01
Time Left:
00:00
Percent Done:
100%
Average Speed:
1.81 MB/s
mouse double click: download pause/resume
mouse middle click: download cancel
mouse double click: open file
mouse double click + Ctrl: open dir
mouse middle click: delete from list
mouse middle click + Ctrl: delete from system
press mouse button + Ctrl: drag & drop