Greenie0101 Posted October 3, 2012 Share Posted October 3, 2012 can a function be added which sets the peds or players rotation so its facing either a x,y,z position or a specified element. I'm sure this can be done manually through some calculation but im no good at maths. for example could it be setPedFacing(ped,element) or setPedFacing(ped,x,y,z) e.g. 1 setPedFacing(ped,player) --Will change the peds rotation so it faces the player e.g. 2 setPedFacing(ped,0,0,0) --Will change the peds rotation so it faces the position 0,0,0 this would help me a lot if it was added in a future update Link to comment
DakiLLa Posted October 3, 2012 Share Posted October 3, 2012 You can use findRotation. Link to comment
Greenie0101 Posted October 7, 2012 Author Share Posted October 7, 2012 never saw that function, thanks alot Link to comment
Greenie0101 Posted October 25, 2012 Author Share Posted October 25, 2012 setPedLookAt btw only turns the peds head Link to comment
Anderl Posted October 25, 2012 Share Posted October 25, 2012 If you want to change the whole player's rotation, just use setElementRotation. Link to comment
Greenie0101 Posted November 3, 2012 Author Share Posted November 3, 2012 If you want to change the whole player's rotation, just use setElementRotation. i know, i just wanted to know how to find what rotation i need it to be set as so that the ped is facing the player Link to comment
Anderl Posted November 3, 2012 Share Posted November 3, 2012 i know, i just wanted to know how to find what rotation i need it to be set as so that the ped is facing the player You can use findRotation. Link to comment
Recommended Posts