A help related with GetXYInFrontOfPlayer.
#9

You just want to get the angle between two points than use that
pawn Код:
stock Float: GetAngle(Float: X1, Float: Y1, Float: X2, Float: Y2) // player - target
    return -atan2(X2 - X1, Y2 - Y1); // returns values between (180.0) and (-180.0)
Reply


Messages In This Thread
A help related with GetXYInFrontOfPlayer. - by De4dpOol - 18.02.2015, 08:41
Re: A help related with GetXYInFrontOfPlayer. - by AIped - 18.02.2015, 08:49
Re: A help related with GetXYInFrontOfPlayer. - by De4dpOol - 18.02.2015, 09:09
Re: A help related with GetXYInFrontOfPlayer. - by PaulDinam - 18.02.2015, 10:44
Re: A help related with GetXYInFrontOfPlayer. - by De4dpOol - 18.02.2015, 11:11
Re: A help related with GetXYInFrontOfPlayer. - by AIped - 18.02.2015, 11:38
Re: A help related with GetXYInFrontOfPlayer. - by AIped - 18.02.2015, 11:44
Re: A help related with GetXYInFrontOfPlayer. - by De4dpOol - 18.02.2015, 11:49
AW: A help related with GetXYInFrontOfPlayer. - by Nero_3D - 18.02.2015, 11:50
Re: A help related with GetXYInFrontOfPlayer. - by AIped - 18.02.2015, 11:52

Forum Jump:


Users browsing this thread: 2 Guest(s)