Bully-Board

Bully Modding Section => Modding Questions/Help => Topic started by: Ming on January 21, 2022, 07:05:40 AM

Title: PedGetHeading max value
Post by: Ming on January 21, 2022, 07:05:40 AM
What is the max value of PedGetHeading ?
Title: Re: PedGetHeading max value
Post by: Altamurenza on January 21, 2022, 09:42:58 AM
What is the max value of PedGetHeading ?

PedGetHeading returns a number in radian unit of angle measurement, so it must be -π (-3.14) and π (3.14).
Title: Re: PedGetHeading max value
Post by: Ming on March 12, 2022, 05:45:48 AM
What is the max value of PedGetHeading ?

PedGetHeading returns a number in radian unit of angle measurement, so it must be -π (-3.14) and π (3.14).
If Ped face 180?, and it will return π, right?
Title: Re: PedGetHeading max value
Post by: RBS ID on March 12, 2022, 06:15:51 AM
Yep.
Title: Re: PedGetHeading max value
Post by: Altamurenza on March 15, 2022, 01:29:16 AM
What is the max value of PedGetHeading ?

PedGetHeading returns a number in radian unit of angle measurement, so it must be -π (-3.14) and π (3.14).

Two minor corrections according to my recent found.

Min: -3.23 (-π - 0.09)
Max: 3.05 (π - 0.09)
What is the max value of PedGetHeading ?

PedGetHeading returns a number in radian unit of angle measurement, so it must be -π (-3.14) and π (3.14).
If Ped face 180?, and it will return π, right?

If you don't need very precise numbers, you can just do PedGetHeading(gPlayer) * 57.3 to turn radians into degrees.
Title: Re: PedGetHeading max value
Post by: RBS ID on March 15, 2022, 04:24:23 AM
math.deg(r)
Title: Re: PedGetHeading max value
Post by: Altamurenza on March 15, 2022, 04:28:19 AM
math.deg(r)

Yep, how could i forget that we have math.deg around lol.
Title: Re: PedGetHeading max value
Post by: Ming on April 01, 2022, 08:58:49 PM
What is the max value of PedGetHeading ?

PedGetHeading returns a number in radian unit of angle measurement, so it must be -π (-3.14) and π (3.14).

Two minor corrections according to my recent found.

Min: -3.23 (-π - 0.09)
Max: 3.05 (π - 0.09)
What is the max value of PedGetHeading ?

PedGetHeading returns a number in radian unit of angle measurement, so it must be -π (-3.14) and π (3.14).
If Ped face 180?, and it will return π, right?

If you don't need very precise numbers, you can just do PedGetHeading(gPlayer) * 57.3 to turn radians into degrees.
Wow!!! It is useful to me
Title: Re: PedGetHeading max value
Post by: Ming on April 10, 2022, 09:16:08 PM
What is the max value of PedGetHeading ?

PedGetHeading returns a number in radian unit of angle measurement, so it must be -π (-3.14) and π (3.14).
Wait, π and -π, so it is sine function?