25.07.2018, 20:49
IsPointInDynamicArea should do what you are looking for. It checks if a point is in a dynamic area. To get the distance you can simply use Streamer_GetFloatData for X, Y and Z coord and calculate the distance to the point using VectorSize or floatsqroot (only needed if the point is actually in the area).
Furthermore, shouldn't the loop start at index 0 and end at loadedStreets - 1 ? Just asking as you directly access the array which doesn't start at index 1, unless you did this intentionally for some reason.
Furthermore, shouldn't the loop start at index 0 and end at loadedStreets - 1 ? Just asking as you directly access the array which doesn't start at index 1, unless you did this intentionally for some reason.