Is there a script I can use to make an NPC attack only the pc/party leader and not any of the party members when the NPC is hostile?
Well if you dont want the Party Members to attack them as well you could make a script that changes there Faction to Hostile, But your party members to Netural. Ofcourse this would then have to be reversed at the end or they will never help you lol xD
I tried that but they were still attacked.
You will first have to remove them from your party and then change them to nuetral then have the NPC attack the PC. As long as they are in your party they will keep fighting for you.