Method ClosestAgentFromPosition
ClosestAgentFromPosition(RideVector3, List<RideID>)
Find the agent id of the closest agent to a position.
Declaration
public static RideID ClosestAgentFromPosition(RideVector3 pos, List<RideID> agentList)
Parameters
Type | Name | Description |
---|---|---|
RideVector3 | pos | The agent where distance will be measured to |
List<RideID> | agentList |
Returns
Type | Description |
---|---|
RideID | The closest agent |