Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

npc help

Page: 1 of 1
 n1gamer
05-02-2007, 5:25 PM
#1
I was woundering how do i get an npc i created to attack me when a certain
dialog line is choosen.

Thanks n1gamer
 tk102
05-02-2007, 7:09 PM
#2
In the last dialog branch, attach a script that changes the faction of the creature. Something like this:
void main() {
ChangeToStandardFaction(OBJECT_SELF,1); // become an enemy
ExecuteScript("k_ai_master",OBJECT_SELF,1002); //forces perception of you
}

Edit: updated this to invoke the call to k_ai_master
 n1gamer
05-03-2007, 5:32 AM
#3
Thanks for the help tk102
Page: 1 of 1