Making interactWithEntity respect facing and field of view #237
-
|
Hello, thank you for your work on this project! I’ve been experimenting with entity interactions and currently have the following code: Ensure the player is actually facing the target entity Confirm the entity is within a reasonable field of view before interaction Right now the logic is purely distance-based. Is there an existing API or recommended approach to add facing and FOV checks before calling interactWithEntity? Or should I implement my own angle/visibility calculation prior to invoking the interaction? Any guidance would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
player.target.hasEntity I guess that are all helper methods for now you can use |
Beta Was this translation helpful? Give feedback.
player.target.hasEntity
player.target.getEntityId
player.target.findValidTargetPoint
I guess that are all helper methods for now you can use