News: Welcome back to Bullworth! If you haven't already, you will need to reset your password..


Author Topic: PedGetHeading max value  (Read 1696 times)

0 Members and 1 Guest are viewing this topic.

Offline Ming

  • Full Member
  • ***
  • Posts: 154
  • Gender: Male
  • 抽刀斷水水更流,舉杯消愁愁更愁
    • View Profile
PedGetHeading max value
« on: January 21, 2022, 07:05:40 AM »
What is the max value of PedGetHeading ?

Offline Altamurenza

  • Full Member
  • ***
  • Posts: 118
  • Gender: Male
  • I love cheat, unique, realistic, & expansion mod.
    • View Profile
Re: PedGetHeading max value
« Reply #1 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).
« Last Edit: January 21, 2022, 09:45:16 AM by Altamurenza »

Offline Ming

  • Full Member
  • ***
  • Posts: 154
  • Gender: Male
  • 抽刀斷水水更流,舉杯消愁愁更愁
    • View Profile
Re: PedGetHeading max value
« Reply #2 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?

Offline RBS ID

  • Jr. Member
  • **
  • Posts: 67
  • Gender: Male
  • I don't know.
    • View Profile
    • This is website title.
Re: PedGetHeading max value
« Reply #3 on: March 12, 2022, 06:15:51 AM »
Yep.

Offline Altamurenza

  • Full Member
  • ***
  • Posts: 118
  • Gender: Male
  • I love cheat, unique, realistic, & expansion mod.
    • View Profile
Re: PedGetHeading max value
« Reply #4 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.
« Last Edit: March 15, 2022, 01:44:28 AM by Altamurenza »

Offline RBS ID

  • Jr. Member
  • **
  • Posts: 67
  • Gender: Male
  • I don't know.
    • View Profile
    • This is website title.
Re: PedGetHeading max value
« Reply #5 on: March 15, 2022, 04:24:23 AM »
math.deg(r)

Offline Altamurenza

  • Full Member
  • ***
  • Posts: 118
  • Gender: Male
  • I love cheat, unique, realistic, & expansion mod.
    • View Profile
Re: PedGetHeading max value
« Reply #6 on: March 15, 2022, 04:28:19 AM »
math.deg(r)

Yep, how could i forget that we have math.deg around lol.

Offline Ming

  • Full Member
  • ***
  • Posts: 154
  • Gender: Male
  • 抽刀斷水水更流,舉杯消愁愁更愁
    • View Profile
Re: PedGetHeading max value
« Reply #7 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

Offline Ming

  • Full Member
  • ***
  • Posts: 154
  • Gender: Male
  • 抽刀斷水水更流,舉杯消愁愁更愁
    • View Profile
Re: PedGetHeading max value
« Reply #8 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?