Scorge Posted June 22, 2012 Share Posted June 22, 2012 Hello, I am wondering on how to make an NPC do a computer typing and fixing/engineering animation through scripting without starting a dialogue with the NPC. And for the NPC to repeat the animation after the dialogue. Thanks. Link to comment Share on other sites More sharing options...
Scorge Posted June 22, 2012 Author Share Posted June 22, 2012 I've looked into the animations.2da file and found the animations I need, the thing is; I need to somehow put it into a script that is entered into the OnHeartbeat area on the .utc Link to comment Share on other sites More sharing options...
Hassat Hunter Posted June 22, 2012 Share Posted June 22, 2012 Just add 100 infront of the number... so for example; DelayCommand(0.8, AssignCommand(oSittingWalrusman, ActionPlayAnimation(10037, 1.0, 0.0))); Or, if you find an animation you want in the nwnscript.nss, than just use that number only. For example; DelayCommand(0.8, AssignCommand(oSittingWalrusman, ActionPlayAnimation(37, 1.0, 0.0))); Link to comment Share on other sites More sharing options...
Scorge Posted June 22, 2012 Author Share Posted June 22, 2012 Can I replace Walrusman with something else or does it have to be "Walrusman"? Link to comment Share on other sites More sharing options...
Fallen Guardian Posted June 22, 2012 Share Posted June 22, 2012 Just change it to whatever you've identified your object as earlier in the script. So you'd have something like this: Delete all the colored text and replace it with what it tells your before you compile. void main() { object o[color="Red"]"Delete quotes and put whatever you want here"[/color] = GetObjectByTag([color="SeaGreen"]"YOUR OBJECT'S TAG"[/color]); DelayCommand(0.8, AssignCommand(o[color="DarkRed"]"Whatever you put in the red above"[/color], ActionPlayAnimation([color="Purple"]Your animation number[/color], 1.0, [color="Black"]How long you want it to run[-1.0 is looping forever][/color]))); } If it's a looping animation this would be the creature's onSpawn script, but if it's a fire forget animation it'd be in it's heartbeat script. Link to comment Share on other sites More sharing options...
Scorge Posted June 22, 2012 Author Share Posted June 22, 2012 Alright, thanks guys. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.