Catch OnMapShowing

Discussion in 'Rust Development' started by Sorrow, Aug 4, 2018.

  1. Hi,

    I try to catch if player show the map with OnPlayerInput on "G". It's works if player doesn't modify her input.

    My question is, is there an event that is triggered when a player displays his map?

    Thanks for your reply.
     
  2. Do you have an idea ?
     
  3. Check "MapInterface" and player flags. As i know (i can be wrong), on opening map its adding flag on player.
     
  4. Oh thanks for your reply I check that :)
     
  5. And what's the result? Publish it here, it can be helpful
     
  6. I try this but not work :

    Code:
            private void OnPlayerInput(BasePlayer player, InputState input)
            {
                MapInterface map = player.GetComponent<MapInterface>();
                if (map != null) Puts("MAP");
            }
    I didn't know get players flags :/