Jump to content

Getting more Data from Entity


Dr.Allcome

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...