Jump to content

Entity is facing another ?


YouGroove
 Share

Recommended Posts

I would know how to to for :

Know if a character is facing a golbin within some angle.

 

How to calculate that angle ?

 

I am trying to achieve somehting like :

 

If player.AngleToEntity(Goblin) <45 then
  player.facingGoblin = true
end 

 

I gonna throught Goblin script, found Atan and Yaw variables but didn't understood how it works ? how ot use it ?

Stop toying and make games

Link to comment
Share on other sites

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.

 Share

×
×
  • Create New...