Thoughts why I can't get NPCs to run the following code in OnPerceived?
//Goes OnPerceived of a creature
void main()
{
object oPC = GetLastPerceived();
if (!GetIsPC(oPC)) return;
if (!GetLastPerceptionSeen()) return;
ActionSpeakString("Something to say here!", TALKVOLUME_TALK);
}
I can't get it to work, but if I swap out ActionSpeakString with FloatingTextStringOnCreature("Make the PC talk", oPC);, it works fine. I've tried FloatingTextStringOnCreature("Make the PC talk", OBJECT_SELF) but that isn't making the bugger speak either.