I need some help with a cutscene. I'm scripting an ambush scenario but my Sith assassins won't attack.
The first two scripts work fine:
1st script, spawn Sith assassins.
2nd script, remove stealth effect, change faction of Rep Soldiers to 2 (assassins are faction 1).
http://home.comcast.net/~deathdisco/images/cut1.jpg)
The third script is suppost to have assassins attack and neutralize Rep Soldiers but all they do is drop to a ready stance and do nothing else.
http://home.comcast.net/~deathdisco/images/cut2.jpg)
Here's the script I'm using.
void main()
{
object oNPC = GetObjectByTag("n_sithsoldier002");
object oNPC1 = GetObjectByTag("n_sithsoldier003");
object oTarget = GetObjectByTag("repfod");
object oTarget1 = GetObjectByTag("repfod1");
AssignCommand(oNPC, ActionDoCommand(CutsceneAttack(oTarget, 416, 2, 500)));
AssignCommand(oNPC1, ActionDoCommand(CutsceneAttack(oTarget1, 416, 2, 500)));
SendMessageToPC(GetFirstPC(), "Fire3");
}
I also need them to move to a location or waypoint after they're done but the script I'm using isn't working.
void main()
{ location locA = Location(Vector(0.33,-173.79,-1.55), 0.0);
object oNPC = GetObjectByTag("n_sithsoldier002");
object oNPC1 = GetObjectByTag("n_sithsoldier003");
AssignCommand(oNPC, ActionMoveToLocation(locA, FALSE));
AssignCommand(oNPC1, ActionMoveToLocation(locA, FALSE));
SendMessageToPC(GetFirstPC(), "Fire5");
}
The scripts are firing as they show up in my message feedback. I'm guessing the commands are getting hung up somewhere in the script (maybe needs to be streamlined) or I'm using the wrong animation number (2HS_Perform_Flurry_3 in animations.2da). But even after the Rep Soldiers start firing on them, they won't attack.
My scripting knowledge is limited to trial and error and picking apart existing scipts/nwscript. So any help is greatly appreciated.
TIA.