allDead – Talk
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) |
(→Returned array appears to be sorted by distance: Correct my comment) |
||
Line 13: | Line 13: | ||
};</code> | };</code> | ||
== Returned array | == Returned array distance sorting == | ||
Is the returned array sorted by distance from the player? [[User:Ebay|Ebay]] ([[User talk:Ebay|talk]]) 20:23, 29 October 2016 (CEST) | |||
::If there is an order, it is coincidental, no sorting is performed deliberately [[User:Killzone Kid|Killzone Kid]] ([[User talk:Killzone Kid|talk]]) 20:37, 29 October 2016 (CEST) | ::If there is an order, it is coincidental, no sorting is performed deliberately [[User:Killzone Kid|Killzone Kid]] ([[User talk:Killzone Kid|talk]]) 20:37, 29 October 2016 (CEST) |
Revision as of 16:33, 6 April 2017
Can use a server game logic to create your own simple garbage collector
if (!isServer || !isDedicated) exitWith {};
while {isDedicated} do
{
_list = allDead;
for {_i = 0; _i < count _list; _i = _i + 1} do
{
deleteVehicle _x;
};
sleep 600; // Cleans server every 10 minutes
};
Returned array distance sorting
Is the returned array sorted by distance from the player? Ebay (talk) 20:23, 29 October 2016 (CEST)
- If there is an order, it is coincidental, no sorting is performed deliberately Killzone Kid (talk) 20:37, 29 October 2016 (CEST)