hadie Posted July 9, 2024 Posted July 9, 2024 How to make npc move direction when we touch the npc? Like this Before touch normal after touch the direction will follow where you are Quote
0 Lily Cumming Posted July 10, 2024 Posted July 10, 2024 You can try my method, you have to calculate the new direction: Once you determine that the NPC has an effect on the player, you can calculate the direction that the NPC needs to change direction to avoid the next collision. This calculation may include: * Calculate the direction vector from the NPC's position to the player's position. *Adjust NPC navigation based on this vector, for example using the lerp (linear interpolation) method to make navigation smoother. You can also go to Google to find out how to do it suitable for your game Quote
0 Poring King Posted July 10, 2024 Posted July 10, 2024 You can use "npcwalkto" . You can see it on your server files script_commands to properly guide you how to use all npc script syntax Quote
Question
hadie
How to make npc move direction when we touch the npc?
Like this
Before touch normal after touch the direction will follow where you are
2 answers to this question
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.