Player looking back

Started by Nihongo^, Sep 09, 2016, 06:56 AM

Previous topic - Next topic

Nihongo^

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" />


Nihongo^


KingOfVC

you can set player angle using player.Angle on onPlayerRequestClass.

Nihongo^

how to use it ? can i simple paste it on that function ?

vito

#4
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

Nihongo^

Thanks vito its help a lot