I'm trying to get my werewolf in a cutscene to do a couple of animations. But it isn't working for me.
I've been using the new and updated version of Lilac Soul's script generator, LS-TK Script generator (Absolutely great program btw. Never have been able to get anywhere making scripts for nwn 1 without it!) to create the effect of an npc werewolf doing a couple of victory animations, and I'm hoping that someone will be able to help me sort this out please?
This is the script I started with.
void main()
{
object oActor;
// Only fire for (real) PCs.
if ( !GetIsPC(oPC) || GetIsDMPossessed(oPC) )
return;
// Have "WhiteWerewolf" perform a sequence of actions.
oActor = GetObjectByTag("WhiteWerewolf");
AssignCommand(oActor, ActionWait(22.0));
AssignCommand(oActor, ActionPlayAnimation(ANIMATION_FIREFORGET_VICTORY1));
AssignCommand(oActor, ActionWait(25.0));
AssignCommand(oActor, ActionPlayAnimation(ANIMATION_FIREFORGET_VICTORY2));
AssignCommand(oActor, ActionWait(28.0));
AssignCommand(oActor, ActionPlayAnimation(ANIMATION_FIREFORGET_VICTORY3));
}
Once that didn't work, I then I tried to change it.
Where I have oActor, I first attempted to change them all to oCaster.
No go!
I then attemped to change them all to oWerewolf
But that wasn't working for me either.
What I have shown above, is only a part of a very long script.
But this is the part I'm trying to work on right now.
Does anyone out there know how I can possibly get my npc werewolf to do these scripted animations please?
Can anyone out there help me?
Modifié par MissJaded, 15 octobre 2011 - 07:35 .





Retour en haut






