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

Sandbox.ModAPI.Ingame.MyDetectedEntityInfo

Malware edited this page Dec 25, 2018 · 44 revisions

Index

MyDetectedEntityInfo Struct

public struct MyDetectedEntityInfo: ValueType

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

**Inheritance: **ValueType

Example

Remarks

Fields

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

Properties

Member Description
Position The entity's position (center of the Bounding Box)

Methods

Member Description
IsEmpty() Determines if this structure is empty; meaning it does not contain any meaningful data
Clone this wiki locally