Is(Dynamic)ObjectInRangeOfPoint
#8

Or if you want for dynamic objects only, you can use Streamer_GetDistanceToItem function.
pawn Код:
IsDynamicObjectInRangeOfPoint(objectid, Float: range, Float: x, Float: y, Float: z)
{
    new
        Float: distance;
   
    Streamer_GetDistanceToItem(x, y, z, STREAMER_TYPE_OBJECT, objectid, distance);
    return (distance <= range);
}
Reply


Messages In This Thread
Is(Dynamic)ObjectInRangeOfPoint - by S4t3K - 03.05.2014, 20:20
Re: Is(Dynamic)ObjectInRangeOfPoint - by XK - 03.05.2014, 20:25
Re : Is(Dynamic)ObjectInRangeOfPoint - by S4t3K - 03.05.2014, 21:09
Re: Is(Dynamic)ObjectInRangeOfPoint - by Patrick - 03.05.2014, 21:26
Re : Is(Dynamic)ObjectInRangeOfPoint - by S4t3K - 03.05.2014, 21:29
Re: Is(Dynamic)ObjectInRangeOfPoint - by Vince - 03.05.2014, 22:48
Re : Is(Dynamic)ObjectInRangeOfPoint - by S4t3K - 04.05.2014, 09:54
Re: Is(Dynamic)ObjectInRangeOfPoint - by Konstantinos - 04.05.2014, 10:50

Forum Jump:


Users browsing this thread: 3 Guest(s)