IsInRangeofDynamicArea
#4

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.
Reply


Messages In This Thread
IsInRangeofDynamicArea - by Stefand - 23.07.2018, 09:40
Re: IsInRangeofDynamicArea - by Calisthenics - 23.07.2018, 14:39
Re: IsInRangeofDynamicArea - by Stefand - 25.07.2018, 20:39
Re: IsInRangeofDynamicArea - by NaS - 25.07.2018, 20:49
Re: IsInRangeofDynamicArea - by Stefand - 25.07.2018, 21:38
Re: IsInRangeofDynamicArea - by 0x88 - 25.07.2018, 21:44
Re: IsInRangeofDynamicArea - by NaS - 25.07.2018, 22:24

Forum Jump:


Users browsing this thread: 2 Guest(s)