Getting coordinates in an area?
#2

You can use offsetting to your advantage. For instance,

Say we have an object. We can then take a offset such as -0.5, and add it to the y coordinate of an object.

Example:
pawn Код:
new Float: x, Float: y, Float: z;
GetObjectPos(main_object, x, y, z);

new Float: offset = 0.5;
ObjectCoordinates[0] = x-offset;
If the x of the object is 1000, then it'd be 999.95. I actually made an object offset include a few months ago:
https://sampforum.blast.hk/showthread.php?tid=541980

That may be worth checking out.
Reply


Messages In This Thread
Getting coordinates in an area? - by Nicker - 28.03.2015, 15:07
Re: Getting coordinates in an area? - by Abagail - 28.03.2015, 15:10

Forum Jump:


Users browsing this thread: 2 Guest(s)