private static void PlayerLootContainer(BasePlayer player, StorageContainer container)
 {
     container.SetFlag(BaseEntity.Flags.Open, true);
     player.inventory.loot.StartLootingEntity(container, false);
     player.inventory.loot.AddContainer(container.inventory);
     player.inventory.loot.SendImmediate();
     player.ClientRPCPlayer(null, player, "RPC_OpenLootPanel", container.panelName);
     container.DecayTouch();
     container.SendNetworkUpdate();
 }
Exemple #2
0
 public void StartLoot()
 {
     storage.SetFlag(BaseEntity.Flags.Open, true, false);
     player.inventory.loot.StartLootingEntity(storage, false);
     player.inventory.loot.AddContainer(storage.inventory);
     player.inventory.loot.SendImmediate();
     player.ClientRPCPlayer(null, player, "RPC_OpenLootPanel", storage.panelName);
     storage.DecayTouch();
     storage.SendNetworkUpdate();
 }