PDA

View Full Version : Make a NPC attack the player


ocho
02-05-2009, 01:27 PM
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, 01:29 PM
GetObjectByTag("cantina_droid")
put it in your script instead of OBJECT_SELF :)