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.

Make a NPC attack the player

Page: 1 of 1
 ocho
02-05-2009, 1:27 PM
#1
Hey,

this script makes the NPC you're talking to attack you right
void main()
{
ChangeToStandardFaction(OBJECT_SELF, STANDARD_FACTION_HOSTILE_1);
AdjustAlignment(GetFirstPC(), ALIGNMENT_DARK_SIDE, 20);
ChangeToStandardFaction(OBJECT_SELF, STANDARD_FACTION_HOSTILE_1);
}
but how do i change OBJECT_SELF into the NPC, its tag is cantina_droid

Thanks,
Ocho
 zbyl2
02-05-2009, 1:29 PM
#2
GetObjectByTag("cantina_droid")
put it in your script instead of OBJECT_SELF :)
Page: 1 of 1