Jump to content

Home

Scripting a weapon flourish?


Silveredge9

Recommended Posts

How would I do this? I can imagine it's something along the lines of "actionplayanimation" and such, but I'm not 100% sure.

 

I just need a script that will make an NPC perform the flourish animation with the weapons the npc has equipped.

 

Any help would be greatly appreciated on this. :)

Link to comment
Share on other sites

How would I do this? I can imagine it's something along the lines of "actionplayanimation" and such, but I'm not 100% sure.

I just need a script that will make an NPC perform the flourish animation with the weapons the npc has equipped.

 

That depends on if it's for KotOR1 or KotOR2:TSL? If it's the latter you can use the script function CreatureFlourishWeapon() for this:

void main() {
   CreatureFlourishWeapon(GetObjectByTag("TagOfNPCtoFlourish"));
}

 

That function doesn't exist in KotOR1 though, so there you'll have to figure out the animation number for the type of flourish to perform and use a combination of SetLightsaberPowered() (if it's a lightsaber) and PlayAnimation() to do it.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...