Skip to content
This repository was archived by the owner on Dec 13, 2025. It is now read-only.

VRage.Game.ModAPI.Ingame.IMyEntity

Malware edited this page Dec 21, 2018 · 55 revisions

Index

IMyEntity Interface

Namespace: VRage.Game.ModAPI.Ingame
Assembly: VRage.Game.dll

Summary

Ingame (Programmable Block) interface for all entities.

Properties

_MyEntityComponentContainer Components_
_long EntityId_
_string Name_
_string DisplayName_
_bool HasInventory_ Returns true if this entity has got at least one inventory. Note that one aggregate inventory can contain zero simple inventories => zero will be returned even if GetInventory() != null.
_int InventoryCount_ Returns the count of the number of inventories this entity has.
_BoundingBoxD WorldAABB_
_BoundingBoxD WorldAABBHr_
_MatrixD WorldMatrix_
_BoundingSphereD WorldVolume_
_BoundingSphereD WorldVolumeHr_
### Methods
_IMyInventory GetInventory()_ Simply get the MyInventoryBase component stored in this entity.
_IMyInventory GetInventory(int index)_ Search for inventory component with maching index.
_Vector3D GetPosition()_

Clone this wiki locally