IsPlayerAroundObject
#2

Can't you just do a range check on the object? Or you need something more than that?

pawn Код:
IsPlayerAroundObject(playerid, objectid, Float:Range = 10.0)
{
    new
        Float:o_x, Float:o_y, Float:o_z;
    GetObjectPos(objectid, o_x, o_y, o_z);
   
    if(IsPlayerInRangeOfPoint(playerid, Range, o_x, o_y, o_z))
        return 1;
    return 0;
}
Problem is different sized objects
Reply


Messages In This Thread
IsPlayerAroundObject - by Lorenc_ - 29.04.2011, 08:14
Re: IsPlayerAroundObject - by iggy1 - 29.04.2011, 08:35
Re: IsPlayerAroundObject - by Salsa - 29.04.2011, 08:53
Re: IsPlayerAroundObject - by Lorenc_ - 29.04.2011, 09:37

Forum Jump:


Users browsing this thread: 1 Guest(s)