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.
Catch OnMapShowing
Discussion in 'Rust Development' started by Sorrow, Aug 4, 2018.
-
Do you have an idea ?
-
Check "MapInterface" and player flags. As i know (i can be wrong), on opening map its adding flag on player.
-
Oh thanks for your reply I check that
-
-
I try this but not work :
Code:private void OnPlayerInput(BasePlayer player, InputState input) { MapInterface map = player.GetComponent<MapInterface>(); if (map != null) Puts("MAP"); }