Method GetEntityByLocation
GetEntityByLocation(RideVector3, String, Single)
Searches all entities in the scenario that have the given tag and are within the given distance
Declaration
IEnumerable<RideID> GetEntityByLocation(RideVector3 position, string tag, float distance = 0F)
Parameters
Type | Name | Description |
---|---|---|
RideVector3 | position | The center point |
System.String | tag | The id requirement of the entity within the distance |
System.Single | distance | The furthest distance from the center point that an entity can be before being ignored |
Returns
Type | Description |
---|---|
IEnumerable<RideID> | A collection of entity ids |
GetEntityByLocation(RideID, RideVector3, String, Single)
Searches all entities in the scenario that have the given tag and are within the given distance
Declaration
IEnumerable<RideID> GetEntityByLocation(RideID scenarioId, RideVector3 position, string tag, float distance = 0F)
Parameters
Type | Name | Description |
---|---|---|
RideID | scenarioId | |
RideVector3 | position | The center point |
System.String | tag | The id requirement of the entity within the distance |
System.Single | distance | The furthest distance from the center point that an entity can be before being ignored |
Returns
Type | Description |
---|---|
IEnumerable<RideID> | A collection of entity ids |