mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
Add player objects to remains collector, this should allow for proper corpse cleanup.
This commit is contained in:
parent
ec558c5b66
commit
285391f380
@ -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;
|
||||
|
@ -90,6 +90,8 @@ if (!local _plyr) then {
|
||||
|
||||
_newPlyr = _group createUnit[_class, _location, [], 0, "CAN_COLLIDE"];
|
||||
|
||||
addToRemainsCollector[_newPlyr];
|
||||
|
||||
_newPlyr allowDammage false;
|
||||
{
|
||||
_newPlyr disableAI _x;
|
||||
|
Loading…
Reference in New Issue
Block a user