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 21, 2018 · 45 revisions

Index

MyDetectedEntityInfo Struct

Namespace: Sandbox.ModAPI.Ingame
Assembly: Sandbox.Common.dll

Fields

_long EntityId_ The entity's EntityId
_string Name_ The entity's display name if it is friendly, or a generic descriptor if it is not
_MyDetectedEntityType Type_ Enum describing the type of entity
_Nullable HitPosition_ Position where the raycast hit the entity. (can be null if the sensor didn't use a raycast)
_MatrixD Orientation_ The entity's absolute orientation at the time it was detected
_Vector3 Velocity_ The entity's absolute velocity at the time it was detected
_MyRelationsBetweenPlayerAndBlock Relationship_ Relationship between the entity and the owner of the sensor
_BoundingBoxD BoundingBox_ The entity's world-aligned bounding box
_long TimeStamp_ Time when the entity was detected. This field counts milliseconds, compensated for simspeed
### Properties
_Vector3D Position_ The entity's position (center of the Bounding Box)
### Methods
_bool IsEmpty()_ Determines if this structure is empty; meaning it does not contain any meaningful data

Clone this wiki locally