I've been working on spawning a large box and opening it to place or take items from. It was working prior to the most recent rust update. Now when I try, it spawns, opens and closes instantly.
Code:PlayerLoot PlayerLoot = Player.inventory.loot; Container.SetFlag(BaseEntity.Flags.Open, true); PlayerLoot.StartLootingEntity(Container, false);PlayerLoot.AddContainer(Container.inventory); PlayerLoot.SendImmediate();Player.ClientRPCPlayer(null, Player, "RPC_OpenLootPanel", Container.panelName, null, null, null, null); Player.SendNetworkUpdate(BasePlayer.NetworkQueue.Update);
Spawn box and open to loot (C#)
Discussion in 'Rust Development' started by mr.Varzhak, Apr 22, 2016.
-
Is it because your doing "PlayerLoot.StartLootingEntity(Container, false);" right after you open it? It seems that could be the problem.
-