Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: Nihongo^ on Sep 09, 2016, 06:56 AM

Title: Player looking back
Post by: Nihongo^ on Sep 09, 2016, 06:56 AM
why they are looking back ? how do i fix it ? here's my code


      <PlayerPos x="-640.38" y="-549.62" z="18.9747"/>
         <CamPos x="-639.38" y="-555.62" z="19.9747"/>
       <CamLook x="-640.38" y="-549.62" z="18.9747"/>
         <WorldBoundaries x1="5000.0" x2="-5000.0" y1="5000.0" y2="-5000.0" />

(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Fi68.tinypic.com%2F2n6hq2c.png&hash=819508b0d138390e2325b93897e83a7dd426daeb)
Title: Re: Player looking back
Post by: Nihongo^ on Sep 09, 2016, 07:18 AM
hello ?
Title: Re: Player looking back
Post by: KingOfVC on Sep 09, 2016, 07:20 AM
you can set player angle using player.Angle on onPlayerRequestClass.
Title: Re: Player looking back
Post by: Nihongo^ on Sep 09, 2016, 07:27 AM
how to use it ? can i simple paste it on that function ?
Title: Re: Player looking back
Post by: vito on Sep 09, 2016, 07:55 AM
function onPlayerRequestClass(player, classID, team, skin){
player.Angle = 0.69;
}

Angle is in radians.
degree -> radians
5° = 0.0872665
10° = 0.174533
20° = 0.349066
45° = 0.785398
90° = 1.5708
180° = 3.14159
Title: Re: Player looking back
Post by: Nihongo^ on Sep 09, 2016, 08:41 AM
Thanks vito its help a lot