RemoteEntity API
RemoteEntity is a restricted, mostly read-only wrapper for nearby entities returned by scans and targeting methods.
Reference
getId()Returns the numeric entity ID.getName()Returns the entity’s display name.getFaction()Returns theFactionthis entity belongs to.getSpeed()Returns current speed in blocks/s as aDouble.getHeading()Returns normalized forward heading asLuaVec3f.getUp()Returns normalized up vector asLuaVec3f.getRoll()Returns the current roll angle in radians relative to galactic up (world Y axis). Returns0when pointing straight up or down.getMass()Returns total mass as aDouble.getPos()Returns current world position asLuaVec3f.getBoundingBox()Returns the entity’s local-spaceBoundingBoxsnapshot from the game’s internalSegmentController.getBoundingBox()method.getSector()Returns current sector coordinates asLuaVec3i.getSystem()Returns current solar system coordinates asLuaVec3i.
BoundingBox exposes:
getMin()Returns the local-space minimum corner asLuaVec3f.getMax()Returns the local-space maximum corner asLuaVec3f.getCenter()Returns the midpoint betweenminandmaxasLuaVec3f.getDimensions()Returns the local-space size(max - min)asLuaVec3f.getShieldSystem()Returns theShieldSystemwrapper.getEntityType()Returns the entity type string:"SHIP"or"SPACE_STATION".getPilot()Returns the pilot’s player name, ornilwhen unoccupied.
Notes
Use this wrapper for scan/targeting/intel flows where full control is not needed.