Ok, so I wrote this tiny bit of code to learn a bit about
the whole perception thing in NWN. I found that the OnPerception event
fires twice. Anyone know why that is? Or how to make it fire only
once?
1 PC and 1 NPC in the area.
This is attached to the OnPerception NPC event, and all other scripts have been
removed from their respective events as a sanity check.
void main()
{
SpeakString("I see you " + GetName(GetLastPerceived()),TALKVOLUME_SHOUT);
}
Any info would be helpful, I intend to attach this event to a database for a
NPC-Memory & Player reaction, but if it's going to fire off twice at
everything, I may have to re-think how to go about things.
Cheers,
T
Modifié par tmanfoo, 05 octobre 2010 - 12:19 .