Solarint / SAIN

Full EFT AI Replacement
57 stars 18 forks source link

Request for additional method in `External.cs` - GetBotComponent(string botGuid) #151

Open christopher-talke opened 1 week ago

christopher-talke commented 1 week ago

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 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?