11.09.2016, 08:34
Back of the player? get players facing angle, calculate a position with opposite of that with a 1 meter relative pos, it's literally one sin/cos away from you -_- (For sa-mp tho you'd need to use the angle itself)
Here's another hint, relative pos*sin + x, relativepos*cos + y
Thats as much help I can provide without literally giving you the code, if you can't write that ^ in pawn you need to learn more about pawn.
@Nero When calculating infront of something or behind it is usually 2D and sometimes a Z finder, hence it'd turn into a point relative to another point, that makes it too complicated.
Here's another hint, relative pos*sin + x, relativepos*cos + y
Thats as much help I can provide without literally giving you the code, if you can't write that ^ in pawn you need to learn more about pawn.
@Nero When calculating infront of something or behind it is usually 2D and sometimes a Z finder, hence it'd turn into a point relative to another point, that makes it too complicated.

