bneezy Posted November 17, 2004 Share Posted November 17, 2004 How do I make a female Twi'lek dance? Link to comment Share on other sites More sharing options...
Darth333 Posted November 17, 2004 Share Posted November 17, 2004 I found two animations for dancing but haven't tried them. Here is the script: extract from nwswcript: ActionPlayAnimation(int nAnimation, float fSpeed=1.0, float fDurationSeconds=0.0); if you put -1.0 for the duration as in the examples below, you'll get a perpetual animation. Examples on how to use it: void main() { object oNPC=GetObjectByTag("my_npc_tag"); AssignCommand(oNPC,ActionPlayAnimation(17,1.0,-1.0)); } or void main() { object oNPC=GetObjectByTag("my_npc_tag"); AssignCommand(oNPC,ActionPlayAnimation(16,1.0,-1.0)); } or you can also attach this to the OnSpawn field of your .utc (no need to define the object here): void main() { PlayAnimation(17,1.0,-1.0); } or void main() { PlayAnimation(16,1.0,-1.0); } Link to comment Share on other sites More sharing options...
bneezy Posted November 17, 2004 Author Share Posted November 17, 2004 Thank you very much! Link to comment Share on other sites More sharing options...
tk102 Posted November 18, 2004 Share Posted November 18, 2004 Originally posted by Darth333 I found two animations for dancing but haven't tried them. OnSpawn field of your .utc (no need to define the object here): void main() { PlayAnimation(17,1.0,-1.0); } or void main() { PlayAnimation(16,1.0,-1.0); } I found my old mg.mod from May 28, 2004 and decompiled the user defined script for Kitty Kitty. It looks like I applied both animations... ... I dunno ... made her dance though... Link to comment Share on other sites More sharing options...
Darth333 Posted November 18, 2004 Share Posted November 18, 2004 Originally posted by tk102 I found my old mg.mod from May 28, 2004 and decompiled the user defined script for Kitty Kitty. It looks like I applied both animations... ... I dunno ... made her dance though... That must be it. I took a script I had on my HD with a meditation animation but I think initially it was the "bored" animation in the mg.mod Link to comment Share on other sites More sharing options...
Xavier2 Posted December 4, 2004 Share Posted December 4, 2004 And how should be the script to make them stop dancing? Link to comment Share on other sites More sharing options...
Darth333 Posted December 4, 2004 Share Posted December 4, 2004 Try this: void main() { object oNPC=GetObjectByTag("my_npc_tag"); AssignCommand(oNPC,ActionPlayAnimation(0,1.0,1.0)); } nwscript.nss says that when you use a time of -1.0f, your looping animation will play until another animation is applied. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.