What is the easiest way of determining when an user is changing his character? I want to run a script when this is happening.
Thank you.
What is the easiest way of determining when an user is changing his character? I want to run a script when this is happening.
Thank you.
the icon in portrait should be very clear
and when I change from one barb toon to another barb toon?
IPlayer.HeroId is different for each character a player uses, but keep in mind that Hud.Game.Players doesn't contain players who are outside of the game (i.e. sitting in menus), which they will be when they're changing characters. Your plugin will see their new HeroId when they rejoin the game though.
thanks this is what I was looking for, there is already an area listener where I can check for new game