Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

Charcter Animation

Page: 1 of 1
 harark1
05-30-2011, 12:12 AM
#1
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?
 newbiemodder
05-30-2011, 7:42 AM
#2
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.
 harark1
05-30-2011, 1:31 PM
#3
K thanks, so all the animations are in the animations 2da?
 JebusJM
05-31-2011, 11:27 AM
#4
Hey Newbie, I put the script in the Spawn box but it's not working. Any ideas?
 newbiemodder
05-31-2011, 1:47 PM
#5
which character? which animation?

Or try
 JebusJM
05-31-2011, 8:43 PM
#6
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.
 Qui-Gon Glenn
06-02-2011, 10:13 PM
#7
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.
 VarsityPuppet
06-03-2011, 10:01 PM
#8
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.
Page: 1 of 1