Recent changes Random page
GAMING
Gaming
 
WoWWiki
Halopedia
FFXIclopedia
Age of Conan
Warhammer Online
Grand Theft Wiki
See more...

NPC says something outloud without looking away from target object

From NWNWiki

Jump to: navigation, search

[edit] NPC says something outloud without looking away from target object

[edit] What It Does

Basically, if you need to have a NPC blow off the player and go about doing what he is doing, this will do the trick. This doesn't make the NPC look at the object, only turn to face it.

You will need... one object for the NPC to face. This can be anything, if you want the NPC to look at a wall, use an invisible object. Give the object a unique tag. Put the script in the OnConversation and OnDisturbed of the NPC.

[edit] Script

void main ()
{
object oFocalPoint = GetObjectByTag("UNIQUE_OBJECT_TAG");
ActionSpeakString("Can't you see?  I am busy staring at nothing!");
SetFacingPoint(GetPosition(oFocalPoint));
}
Rate this article:
Share this article: