Click or drag to resize
MyDetectedEntityInfo Structure
v01.180.0 (Beta)

[This is preliminary documentation and is subject to change.]

Namespace: Sandbox.ModAPI.Ingame
Assembly: Sandbox.Common (in Sandbox.Common.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public struct MyDetectedEntityInfo

The MyDetectedEntityInfo type exposes the following members.

Constructors
  NameDescription
Public methodMyDetectedEntityInfo
Initializes a new instance of the MyDetectedEntityInfo class
Top
Methods
  NameDescription
Public methodEquals (Inherited from ValueType.)
Public methodGetHashCode (Inherited from ValueType.)
Public methodGetType (Inherited from Object.)
Public methodIsEmpty
Determines if this structure is empty; meaning it does not contain any meaningful data
Public methodToString (Inherited from ValueType.)
Top
Fields
  NameDescription
Public fieldBoundingBox
The entity's world-aligned bounding box
Public fieldEntityId
The entity's EntityId
Public fieldHitPosition
Position where the raycast hit the entity. (can be null if the sensor didn't use a raycast)
Public fieldName
The entity's display name if it is friendly, or a generic descriptor if it is not
Public fieldOrientation
The entity's absolute orientation at the time it was detected
Public fieldRelationship
Relationship between the entity and the owner of the sensor
Public fieldTimeStamp
Time when the entity was detected. This field counts milliseconds, compensated for simspeed
Public fieldType
Enum describing the type of entity
Public fieldVelocity
The entity's absolute velocity at the time it was detected
Top
Properties
  NameDescription
Public propertyPosition
The entity's position (center of the Bounding Box)
Top
See Also