Whenever I try to access other players' "player.Hero.BattleTag" through a plugin in TH, I got lots of errors.
Is it blocked or am I doing something wrong?
FYI, I can get a right BattleTag of mine but the others....in a party.
Whenever I try to access other players' "player.Hero.BattleTag" through a plugin in TH, I got lots of errors.
Is it blocked or am I doing something wrong?
FYI, I can get a right BattleTag of mine but the others....in a party.
IHero Hero {get; } // only available for the local player
(can not be used to know the BattleTag of other players)
There are some data that you can not access if the actors (or players) are not around, sometimes it makes the creation of plugins difficult but you should try to work with that. One option is to keep a record of data when you have access to them and to control the conditions in which that data may change, and to use those records while those conditions do not take place.
bool HasValidActor {get; } It can be useful to know if a IPlayer or Iactor data is available.
Last edited by RNN; 04-21-2019 at 10:21 AM.