Vice City: Multiplayer

VC:MP Discussion => Support => Topic started by: Hoss on Sep 02, 2017, 05:52 PM

Title: Vehicle Angle
Post by: Hoss on Sep 02, 2017, 05:52 PM
Hello, I needed some help with vehicle angles

When i use vehicle.Angle to check a vehicle's angle , i get value in this format: (0.0156597, -0.023772, 0.718616, 0.694825) (x,y,z,w)

but in the CreateVehicle function a single value is required

CreateVehicle( model, world, pos, angle, col1, col2 )

Can someone please tell me what angle to use in CreateVehicle. Thanks!
Title: Re: Vehicle Angle
Post by: D4rkR420R on Sep 02, 2017, 05:56 PM
Just try to identify the angle by player.Angle.
Title: Re: Vehicle Angle
Post by: ysc3839 on Sep 03, 2017, 02:20 AM
http://forum.vc-mp.org/?topic=2304.msg16877#msg16877
Title: Re: Vehicle Angle
Post by: Hoss on Sep 03, 2017, 05:19 AM
Quote from: DarkRaZoR^ on Sep 02, 2017, 05:56 PMJust try to identify the angle by player.Angle.

player angle doesn't update when player is inside a vehicle

Quote from: ysc3839 on Sep 03, 2017, 02:20 AMhttp://forum.vc-mp.org/?topic=2304.msg16877#msg16877
Thanks a lot!