harark1 Posted May 30, 2011 Share Posted May 30, 2011 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? Link to comment Share on other sites More sharing options...
newbiemodder Posted May 30, 2011 Share Posted May 30, 2011 You can put a script like this on the creature's OnSpawn parameter: void main() { AssignCommand(OBJECT_SELF, ActionPlayAnimation([color="Yellow"]10053[/color], 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. Link to comment Share on other sites More sharing options...
harark1 Posted May 30, 2011 Author Share Posted May 30, 2011 K thanks, so all the animations are in the animations 2da? Link to comment Share on other sites More sharing options...
JebusJM Posted May 31, 2011 Share Posted May 31, 2011 Hey Newbie, I put the script in the Spawn box but it's not working. Any ideas? Link to comment Share on other sites More sharing options...
newbiemodder Posted May 31, 2011 Share Posted May 31, 2011 which character? which animation? Or try [codevoid main() { AssignCommand(GetObjectByTag("your npc tag"), ActionPlayAnimation(10053, 1.0, -1.0)); }][/code] Link to comment Share on other sites More sharing options...
JebusJM Posted June 1, 2011 Share Posted June 1, 2011 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. Link to comment Share on other sites More sharing options...
Qui-Gon Glenn Posted June 3, 2011 Share Posted June 3, 2011 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. Link to comment Share on other sites More sharing options...
VarsityPuppet Posted June 4, 2011 Share Posted June 4, 2011 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.