Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: cjhrules on Tue 30/05/2006 17:56:21

Title: NPC facing character all the time (SOLVED)
Post by: cjhrules on Tue 30/05/2006 17:56:21
Is there a way to get a NPC to constantly face a character. So when a character moves the NPC follow the character with his face.

I have tried FaceCharacter() but the NPC doesn't update.
Title: Re: NPC face character all the time.
Post by: Ubel on Tue 30/05/2006 18:00:50
You should put the FaceCharacter() script into repeatedly_execute(). If you want the NPC to only face a character in one specific room, then put the code into the room's repeatedly execute script.

Or if you want the NPC to face your character where ever the character is, then put the code in to the repeatedly_execute() function in Global Script.
Title: Re: NPC face character all the time.
Post by: cjhrules on Tue 30/05/2006 18:02:22
(Edit by strazer: No need to quote the whole post directly above yours!)

that was fast :) thanks!