private void PlayerStoppedLooting(BasePlayer player) { if (container.itemList.Count > 0) { container.itemList[0].MoveToContainer(player.inventory.containerMain); } corpse.Kill(); }
public void StopInspecting() { if (ticks < 5 && !target.IsDead()) { return; } CancelInvoke("Inspect"); StopLooting(); for (var i = 0; i < view.containers.Length; i++) { view.containers[i] = new ItemContainer(); } view.Kill(); Remove(); }
private void OnEntitySpawned(LootableCorpse corpse) { if (corpse == null || corpse.IsDestroyed) { return; } foreach (var container in corpse.containers) { if (container == null) { continue; } foreach (var item in container.itemList.ToArray()) { item.GetHeldEntity()?.Kill(); item.DoRemove(); } } corpse.Kill(); }
public void Close() { corpse.Kill(); }