LucasForums (
-   Holowan Laboratories (
-   -   NPC Animation's (

Scorge 06-22-2012 01:04 PM

NPC Animation's
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.

Scorge 06-22-2012 01:51 PM

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

Hassat Hunter 06-22-2012 02:18 PM

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)));

Scorge 06-22-2012 02:24 PM

Can I replace Walrusman with something else or does it have to be "Walrusman"?

Fallen Guardian 06-22-2012 03:33 PM

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"Delete quotes and put whatever you want here" = GetObjectByTag("YOUR OBJECT'S TAG");

DelayCommand(0.8, AssignCommand(o"Whatever you put in the red above", ActionPlayAnimation(Your animation number, 1.0, How long you want it to run[-1.0 is looping forever])));


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.

Scorge 06-22-2012 03:36 PM

Alright, thanks guys.

All times are GMT -4. The time now is 05:55 AM.

Powered by vBulletin®
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.
LFNetwork, LLC ©2002-2015 - All rights reserved.