IsXYZinAir
#2

Use (Col/Map)Andreas to check the Z height difference. If there is a significant difference, then yes the point is in air.

pawn Код:
public OnFilterScriptInit()
{
    CA_Init();

    return 1;
}

IsXYZinAir(Float:x, Float:y, Float:z)
{
    new Float:CA_z;
    CA_FindZ_For2DCoord(x, y, CA_z);

    return ((-(CA_z - z) * -1) >= 1.0) ? (true) : (false);
}
Reply


Messages In This Thread
IsXYZinAir - by ScIrUsna - 26.04.2016, 04:50
Re: IsXYZinAir - by Gammix - 26.04.2016, 05:00
Re: IsXYZinAir - by ScIrUsna - 26.04.2016, 05:07
Re: IsXYZinAir - by Crayder - 26.04.2016, 05:08
Re: IsXYZinAir - by ScIrUsna - 26.04.2016, 05:23
Re: IsXYZinAir - by Crayder - 26.04.2016, 05:28
Re: IsXYZinAir - by ScIrUsna - 26.04.2016, 05:29
Re: IsXYZinAir - by Crayder - 26.04.2016, 05:34
Re: IsXYZinAir - by ScIrUsna - 26.04.2016, 06:04
Re: IsXYZinAir - by ScIrUsna - 26.04.2016, 06:31

Forum Jump:


Users browsing this thread: 1 Guest(s)