Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Sandbox.ModAPI.Ingame.MyDetectedEntityInfo

Morten Aune Lyrstad edited this page Apr 16, 2022 · 44 revisions

IndexNamespace Index

MyDetectedEntityInfo Struct

public struct MyDetectedEntityInfo

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

Fields

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

Properties

Member Description
[Vector3D Position { get; }](Sandbox.ModAPI.Ingame.MyDetectedEntityInfo.Position) The entity's position (center of the Bounding Box)

Constructors

Member Description
[MyDetectedEntityInfo(long, string, MyDetectedEntityType, Vector3D?, MatrixD, Vector3, MyRelationsBetweenPlayerAndBlock, BoundingBoxD, long)](Sandbox.ModAPI.Ingame.MyDetectedEntityInfo..ctor)

Methods

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