Method GetClosestProp
GetClosestProp(Vector3, Single, Model[])
Gets the closest Prop to a given position in the World.
Declaration
public static Prop GetClosestProp(Vector3 position, float radius, params Model[] models)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The position to find the nearest Prop. |
| System.Single | radius | The maximum distance from the |
| Model[] | models |
Returns
| Type | Description |
|---|---|
| Prop |
Remarks
Returns null if no Prop was in the given region.