So my final code will be:
ExecuteScript("k_ai_master", OBJECT_SELF, KOTOR_DEFAULT_EVENT_ON_HEARTBEAT);
if(GetLastPerceived() == GetFirstPC)
The script me and zbyl2 made is saved by the name of "talk.ncs" on the desktop.
Also, I have a few questions regarding the above script:
1. What do the second and third parameter indicate in the ExecuteScript function?
2. Can you explain what the if condition actually means? What does it do? Thanks.
3. What name should I save the above script as? What should I do next?
4. What should I write in place of "KOTOR_DEFAULT_EVENT_ON_HEARTBEAT"?