Ok I'm trying to make a twilek dance in a cantina. How would I make a script to cause it to play the dancing animation on a loop?
You can put a script like this on the creature's OnSpawn parameter:
void main() {
AssignCommand(OBJECT_SELF, ActionPlayAnimation(10053, 1.0, -1.0));
}
In the animations 2da there are two dance rows. Row 53 and Row 54. You need to add 10000 to the row numbers when using them in the script. In the script above I used row 53. See which one you like better.
K thanks, so all the animations are in the animations 2da?
Hey Newbie, I put the script in the Spawn box but it's not working. Any ideas?
which character? which animation?
Or try
Random NCP and used the first script you posted. Will try the one above. Thanks.
:EDIT: It just doesn't want to work for me.
My guess is that you need to specify a duration with the float, as this is not, IIRC, a FNF animation but rather a looping animation.
Yeah, it generally has to be a constant defined in the nwscript.nss file if you want it to successfully loop forever and ever.
So try 16 or 17 instead of 10053.