So far What i have found is that for using thefunction works best if you dont care about the player beeing asleep. another option isCode:player.StartSleep()which is a bit jittery and doesnt look as smooth. but Ideal would be something like theCode:player.StartWounded(); player.StopWounded();method but for the inventoryCode:player.StopLooting();
Solved Best way to make a player exit their inventory menu
Discussion in 'Rust Discussion' started by CEbbinghaus, May 4, 2018.
-
@CEbbinghaus
more easy than it looks like
Code:// BasePlayer public void SendDeathInformation() { base.ClientRPCPlayer(null, this, "OnDied"); }
Code:// BasePlayer [BaseEntity.RPC_Client] private void OnDied(BaseEntity.RPCMessage msg) { UIInventory.Close(); MapInterface.SetOpen(false); LocalPlayer.LastDeathTime = Time.realtimeSinceStartup; }