[Help] New GetXYZInFrontOfPlayer
#7

pawn Код:
x += (distance * floatsin(-a, degrees));
That line calculates the location of the X-axis, so you need to adjust that to make the 'side-position' bigger/smaller.

pawn Код:
y += (distance * floatcos(-a, degrees));
That line calculates the location of the Y-axis, so basically how far the "position" sticks out for the player. Make it smaller for a shorter distance to the player.
Reply


Messages In This Thread
[Help] New GetXYZInFrontOfPlayer - by Bogdanovic - 24.10.2010, 17:22
Re: [Help] New GetXYZInFrontOfPlayer - by Grim_ - 24.10.2010, 17:25
Re: [Help] New GetXYZInFrontOfPlayer - by Bogdanovic - 24.10.2010, 17:37
Re: [Help] New GetXYZInFrontOfPlayer - by Mauzen - 24.10.2010, 18:48
Re: [Help] New GetXYZInFrontOfPlayer - by Bogdanovic - 24.10.2010, 19:00
Re: [Help] New GetXYZInFrontOfPlayer - by Bogdanovic - 24.10.2010, 19:55
Re: [Help] New GetXYZInFrontOfPlayer - by Hiddos - 24.10.2010, 20:01
Re: [Help] New GetXYZInFrontOfPlayer - by Bogdanovic - 24.10.2010, 20:37
Re: [Help] New GetXYZInFrontOfPlayer - by Bogdanovic - 24.10.2010, 20:54
Re: [Help] New GetXYZInFrontOfPlayer - by Mauzen - 24.10.2010, 22:33

Forum Jump:


Users browsing this thread: 4 Guest(s)