Add player objects to remains collector, this should allow for proper corpse cleanup.

This commit is contained in:
vbawol 2015-12-02 11:59:20 -06:00
parent ec558c5b66
commit 285391f380
2 changed files with 4 additions and 1 deletions

View File

@ -123,9 +123,10 @@ if (typename _this == "ARRAY") then {
};
_newPlyr = _group createUnit[_class, _location, [], 0, "CAN_COLLIDE"];
if !(isNull _newPlyr) then {
addToRemainsCollector[_newPlyr];
//diag_log format ["DEBUG Created New Player: %1", _newPlyr];
{
_newPlyr disableAI _x;

View File

@ -90,6 +90,8 @@ if (!local _plyr) then {
_newPlyr = _group createUnit[_class, _location, [], 0, "CAN_COLLIDE"];
addToRemainsCollector[_newPlyr];
_newPlyr allowDammage false;
{
_newPlyr disableAI _x;