Working on extending the mod Raid Review to pull some info from SAIN (if it's installed), and we're trying to access properties in the component BotComponent attached to an instance of Player.
Right now, are accessing this via player.gameObject.GetComponent<BotComponent>();
Would it be at all possible to implement a method like GetBotComponent(string botGuidId) { ... } that returns that?
Hello 👋🏾
Working on extending the mod Raid Review to pull some info from SAIN (if it's installed), and we're trying to access properties in the component
BotComponent
attached to an instance ofPlayer
.Right now, are accessing this via
player.gameObject.GetComponent<BotComponent>();
Would it be at all possible to implement a method like
GetBotComponent(string botGuidId) { ... }
that returns that?