Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: Chicken on Mar 11, 2022, 09:43 AM

Title: about the angle
Post by: Chicken on Mar 11, 2022, 09:43 AM
I created an NPC object, how can I make it always face him?
Title: Re: about the angle
Post by: 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 (https://forum.vc-mp.org/?topic=7879.msg48908#msg48908)
Title: Re: about the angle
Post by: Chicken on Mar 11, 2022, 09:04 PM
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 (https://forum.vc-mp.org/?topic=7879.msg48908#msg48908)
Is there a way to judge the direction of the npc?
Title: Re: about the angle
Post by: habi on Mar 12, 2022, 01:13 AM
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.
Title: Re: about the angle
Post by: Chicken on Mar 12, 2022, 12:59 PM
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