about the angle

Started by Chicken, Mar 11, 2022, 09:43 AM

Previous topic - Next topic

Chicken

I created an NPC object, how can I make it always face him?

habi

#1
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

Chicken

Quote from: habi on Mar 11, 2022, 11:22 AM
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
Is there a way to judge the direction of the npc?

habi

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.

Chicken

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