
I'm making a series of waypoints that walk some NPC's around an area. I want to put a trigger somewhere in there, and make it so that when one of the NPC's enters it, he says something. How would I do that?
Moderator: Event DM
Code: Select all
void main(){
object oEntering = GetEnteringObject();
if (GetIsPC(oEntering)) //If you only want this for NPC's
return;
AssignCommand(oEntering, ActionDoCommand(SpeakString("He's one bad moth'r... Shut your mouth")));
}