PDA

View Full Version : Scripting a weapon flourish?


Silveredge9
10-14-2006, 10:11 AM
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. :)

stoffe
10-14-2006, 10:22 AM
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.

Silveredge9
10-15-2006, 10:42 AM
Thanks for the help.