I created an NPC object, how can I make it always face him?
Quote from: Chicken on Mar 11, 2022, 09:43 AMI created an NPC object, how can I make it always face him?
Did you refer the NPC object a 'bot' or a regular object created using CreateObject?
Either way, you will be needing this (https://forum.vc-mp.org/?topic=7879.msg48908#msg48908)
Quote from: habi on Mar 11, 2022, 11:22 AMQuote from: Chicken on Mar 11, 2022, 09:43 AMI created an NPC object, how can I make it always face him?
Did you refer the NPC object a 'bot' or a regular object created using CreateObject?
Either way, you will be needing this (https://forum.vc-mp.org/?topic=7879.msg48908#msg48908)
Is there a way to judge the direction of the npc?
You want to make the NPC face the player?
You want to make the player face the NPC?
Which one of above?
Please post some codes so that we get an idea of what you are doing.
Quote from: habi on Mar 12, 2022, 01:13 AMYou want to make the NPC face the player?
You want to make the player face the NPC?
Which one of above?
Please post some codes so that we get an idea of what you are doing.
Thank you habi my math is not ideal. Now I have finished the production