Exemplo n.º 1
0
 /// <summary>
 /// This function is used to retrieve an array of all elements of specified type within a range of 3D coordinates.
 /// </summary>
 public static PhysicalElement[] GetWithinRange(Vector3 position, float range, string type = "")
 {
     MtaElement[] mtaElements = MtaShared.GetArrayFromTable(MtaShared.GetElementsWithinRange(position.X, position.Y, position.Z, range, type), "MTAElement");
     return(ElementManager.Instance.CastArray <PhysicalElement>(mtaElements));
 }