Near a object
#6

Quote:
Originally Posted by Oh
Посмотреть сообщение
I have no idea what you mean.
The object must have a position. Assuming that
Код:
item[i]
is the object's ID, first get the position of the object with GetObjectPos
Код:
new 
   Float:x, Float:y, Float:z; 

GetObjectPos(item[i], x, y, z);
and thereafter check with IsPlayerInRangeOfPoint
Код:
if(IsPlayerInRangeOfPoint(playerid, 2.0, x, y, z))
{ 
}
Reply


Messages In This Thread
Near a object - by Oh - 17.01.2012, 22:30
Re: Near a object - by Vince - 17.01.2012, 22:53
Re: Near a object - by Oh - 17.01.2012, 23:03
Re: Near a object - by Babul - 18.01.2012, 00:44
Re: Near a object - by Oh - 18.01.2012, 00:57
Re: Near a object - by Tannz0rz - 18.01.2012, 02:54

Forum Jump:


Users browsing this thread: 1 Guest(s)