YouGroove Posted January 18, 2015 Posted January 18, 2015 How to make face a character to the player in Lua ? Because when the character have reached the player at some distance and stops following, it's Lua control of it's actions and i would need it to always turn to the player. Quote Stop toying and make games
Rick Posted January 18, 2015 Posted January 18, 2015 When following I always do my own distance check to the target it's following and when within a range explicitly stop it (otherwise you tend to get that strange back and forth turning effect). Then in my sig is the wiki and I believe there is a face entity page. I seem to recall Point() doesn't work on character controllers or something. 2 Quote
YouGroove Posted January 18, 2015 Author Posted January 18, 2015 Thanks a lot Rick, (I always forgot Wiki as it's not on LE3 main site ) Quote Stop toying and make games
cassius Posted January 18, 2015 Posted January 18, 2015 I just chrcked my code and yes you use potnt with the character not its controller. Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++
catch22 Posted January 20, 2015 Posted January 20, 2015 Entity::Point() will work between any two entities, Entity::GetDistance() should help with the other issue. 1 Quote Coding for Christ.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.