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

Sandbox.ModAPI.Ingame.MyDetectedEntityInfo

Malware edited this page Dec 25, 2018 · 45 revisions

Index

MyDetectedEntityInfo Struct

private public sealed MyDetectedEntityInfo
```csharp

**Namespace:** [Sandbox.ModAPI.Ingame](Sandbox.ModAPI.Ingame)  
**Assembly:** Sandbox.Common.dll

### Example

### Remarks

###### Fields

|Member|Description|
|---|---|
|[EntityId](Sandbox.ModAPI.Ingame.MyDetectedEntityInfo.EntityId)|The entity's EntityId|
|[Name](Sandbox.ModAPI.Ingame.MyDetectedEntityInfo.Name)|The entity's display name if it is friendly, or a generic descriptor if it is not|
|[Type](Sandbox.ModAPI.Ingame.MyDetectedEntityInfo.Type)|Enum describing the type of entity|
|[HitPosition](Sandbox.ModAPI.Ingame.MyDetectedEntityInfo.HitPosition)|Position where the raycast hit the entity. (can be null if the sensor didn't use a raycast)|
|[Orientation](Sandbox.ModAPI.Ingame.MyDetectedEntityInfo.Orientation)|The entity's absolute orientation at the time it was detected|
|[Velocity](Sandbox.ModAPI.Ingame.MyDetectedEntityInfo.Velocity)|The entity's absolute velocity at the time it was detected|
|[Relationship](Sandbox.ModAPI.Ingame.MyDetectedEntityInfo.Relationship)|Relationship between the entity and the owner of the sensor|
|[BoundingBox](Sandbox.ModAPI.Ingame.MyDetectedEntityInfo.BoundingBox)|The entity's world-aligned bounding box|
|[TimeStamp](Sandbox.ModAPI.Ingame.MyDetectedEntityInfo.TimeStamp)|Time when the entity was detected. This field counts milliseconds, compensated for simspeed|

###### Properties

|Member|Description|
|---|---|
|[Position](Sandbox.ModAPI.Ingame.MyDetectedEntityInfo.Position)|The entity's position (center of the Bounding Box)|

###### Methods

|Member|Description|
|---|---|
|[IsEmpty()](Sandbox.ModAPI.Ingame.MyDetectedEntityInfo.IsEmpty)|Determines if this structure is empty; meaning it does not contain any meaningful data|

Clone this wiki locally