Bully-Board

Bully Modding Section => Modding Questions/Help => Topic started by: Ming on April 25, 2021, 04:12:14 AM

Title: PedGetHeading
Post by: Ming on April 25, 2021, 04:12:14 AM
How to use "PedGetHeading"function?
Title: Re: PedGetHeading
Post by: SimonBestia 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.
Title: Re: PedGetHeading
Post by: Ming 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