Posts: 1,148
Threads: 19
Joined: Jan 2007
Reputation:
0
I think the radius works like the radius of a circle and the Coords being the center point. Say for example You put 3 as the radius it would have +3 x,y each way from the center point (coords).
Thats the way I think it works but if im not right' I'd like to know aswell.
Posts: 2,593
Threads: 38
Joined: Aug 2007
Reputation:
0
It's supposed to use a distance algorithm for 3 coordinates, X, Y, and Z. By giving the playerid, you're giving the function the coordinates for the player. So the distance between the player's X,Y,Z coordinates and the X,Y,Z coordinates should be less than the radius you asked for (i.e. 10) and it will return 1, meaning the player IS closer than 10 to the point given. Otherwise it returns 0, meaning the player is further than 10 from the point.
Posts: 2,593
Threads: 38
Joined: Aug 2007
Reputation:
0
radius is the distance the player must be within the point given for the function to return 1.
Posts: 1,111
Threads: 52
Joined: Nov 2008
Reputation:
0
So I could use 2 as a radius, if im for example making a pickup for an /enter cmd ?