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.

TSL Faction Change script

Page: 1 of 1
 Holty1-5
02-18-2010, 4:34 PM
#1
hey i know the one for K1

void main()
{
ChangeToStandardFaction(OBJECT_SELF, STANDARD_FACTION_HOSTILE_1);
}

But when i use the same script for K2 it gets a error and i dont know what to change it to any help would be helpful:thmbup1:
 Nirran
02-18-2010, 4:45 PM
#2
this is for TSL to make an NPC hostile


//how many if the object has the same tag as other objects
int number = 1;
object oObject = GetObjectByTag("your_tag_here",number);
ChangeToStandardFaction(oObject, 1);
Page: 1 of 1