GE / extensions / gameplay_traffic_trafficUtils
gameplay_traffic_trafficUtilsfunction checkSpawnPoint(pos, origPos, minDist, minVehDist) -- checks a spawn point for any conflictsfunction createPoliceGroup(amount, allMods) -- creates a group of police vehiclesfunction createTrafficGroup(amount, allMods, allConfigs, simpleVehs) -- creates a traffic group with the use of some player settingsfunction finalizeSpawnPoint(pos, dir, mapNode1, mapNode2, options) -- snaps a spawn point to a lane of the road, plus other optionsfunction findSpawnPointActual(startPos, startDir, minDist, maxDist, targetDist, options) -- returns a spawn point, never nil; forces teleportationfunction findSpawnPointOnRoute(startPos, startDir, minDist, maxDist, targetDist, options) -- returns a spawn point, from a route that starts at the originfunction findSpawnPointOnLine(startPos, startDir, minDist, maxDist, targetDist, options) -- returns a spawn point, from an extended linefunction findSpawnPointOnRoute(startPos, startDir, minDist, maxDist, targetDist, options) -- returns a spawn point, from a route that starts at the originfunction findSpawnPointRadial(startPos, startDir, minDist, maxDist, targetDist, options) -- returns a spawn point, from random radials away from the originfunction getNearestTrafficVehicle(pos, filters) -- returns the nearest traffic vehicle to the given positionfunction getRoleConstructor(roleName) -- gets the role constructor modulefunction getTrafficGroupFromFile(options) -- returns an existing vehicle group filefunction placeTrafficVehicles(pos, dir, options) -- teleports all AI traffic vehicles to the given position, and lines them up