Jump to content

Recommended Posts

Posted

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.

Stop toying and make games

Posted

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.

  • Upvote 2
Posted

I just chrcked my code and yes you use potnt with the character not its controller.

amd quad core 4 ghz / geforce 660 ti 2gb / win 10

Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...