Dr.Allcome Posted October 4, 2018 Share Posted October 4, 2018 Hi, I'm trying to diplay some information about Entities in a Sector. I can get a list of Entities and check what they are with hasComponent or hasScript (thanks to the "useful c43 detector" mod). But I don't know how to proceed from there. For examle if i find an Entity that has the TurretLoot Component (a dropped Turret drifting through space) how do I get information about the Turret itself (rarity, weapon-type)? The Entity has some properties, but no property or function for TurretTemplate or InventoryItem. Are they not documented, or is there a different way i don't see? i also tried the CreateTemplateFromTurret global Function, but it doesn't seem to work with lootable turrets. Link to comment Share on other sites More sharing options...
Rinart73 Posted October 4, 2018 Share Posted October 4, 2018 Not all components are open to the Lua API. For example we don't have access to a TurretLoot component. From what I can see there is no way to get turret loot data atm. Link to comment Share on other sites More sharing options...
Dr.Allcome Posted October 4, 2018 Author Share Posted October 4, 2018 Thank you, at least i can stop driving myself insane because i couldn't find it. I thought i was missing something obvious. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now