Get Character Direction
Blitz3D Forums/Blitz3D Beginners Area/Get Character Direction
| ||
Howdy all. I need to get the direction my character is facing (Vector?) when a user hits wsad keys. The Character moves fine, of course its a sphere for now so I cant tell which way its actually facing. Heres some code... |
| ||
DeltaYaw() |
| ||
maybe you could use a different object, or use: entitypitch#(ply.plyr(0)\modl,1),entityyaw#(ply.plyr(0)\modl,1),entityroll#(ply.plyr(0)\modl,1). Other than that I don't know how to get the rotation of the character, as far as where the character is facing, probably a vector command would work, but I don't know much about those. |
| ||
I now use objects to point the model at depending on which direction he is facing. I then use a variable to store the direction and send that across the network. Everything works great except the lag :( |