question
#1

some one know how to make IsObjectToPoint?
Reply
#2

If you mean the absolute distance

(not tested)
Код:
public IsObjectToPoint(ObjectID, PX, PY, PZ)
{
new Float:OX, Float:OY, Float:OZ, Float:Diff;
GetObjectPos(ObjectID, OX, OY, OZ);
Diff = floatsqrt(floatpower(PX - OX, 2) + floatpower(PY - OY, 2) + floatpower(PZ - OZ, 2));
return Diff;
}
Pythagoras
Reply
#3

i mean like moving object and if object move to selected point stop ..
Reply
#4

You need to use a editor for that, then you can see what the cordinates are of that position.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)