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


Author Topic: PedGetHeading  (Read 1425 times)

0 Members and 1 Guest are viewing this topic.

Offline Ming

  • Full Member
  • ***
  • Posts: 154
  • Gender: Male
  • 抽刀斷水水更流,舉杯消愁愁更愁
    • View Profile
PedGetHeading
« on: April 25, 2021, 04:12:14 AM »
How to use "PedGetHeading"function?

Offline SimonBestia

  • Full Member
  • ***
  • Posts: 294
  • Gender: Male
  • Bully-Board's Best Weeb
    • View Profile
    • Youtube Channel
Re: PedGetHeading
« Reply #1 on: April 25, 2021, 08:14:02 AM »
Code: [Select]
PedGetHeading(pedname)Simple as that.
It returns a value (the direction the ped is facing, in this case) that you can then do whatever you want with.

Offline Ming

  • Full Member
  • ***
  • Posts: 154
  • Gender: Male
  • 抽刀斷水水更流,舉杯消愁愁更愁
    • View Profile
Re: PedGetHeading
« Reply #2 on: April 27, 2021, 04:40:17 AM »
I mean, how to use trigonometric function to convert the value of PedGetHeading to the ratio of x and y