Airbrake c++

T3KTONIT

Well-known member
Joined
Sep 2, 2013
Messages
308
Reaction score
5
PseudoCode:
PHP:
float Position[3] = { LocalPlayer()->Position[0], LocalPlayer()->Position[1] , LocalPlayer()->Position[2] };
 //LocalPlayer()->Position = player position
float Offset = 7.0f; //change this if you want to tweak it.

Position[0] += sinf( LocalPlayer()->Rotation ) * Offset; // LocalPlayer()->Rotation = player rotation
Position[1] += cosf( LocalPlayer()->Rotation ) * Offset; // LocalPlayer()->Rotation = player rotation

setPlayerPosition(Position[0], Position[1], Position[2]); // set my player position
now when you press W you will go forward

creditz : s0beit
 

xShine

Active member
Joined
Jun 12, 2014
Messages
38
Reaction score
0
[member=5679]T3K[/member]

you can make this in detail? please...
 
Top