Difference between revisions of "Questions"

Jump to navigation Jump to search
569 bytes added ,  11:41, 8 June 2006
imported>Omzy
imported>Omzy
Line 719: Line 719:
hey, [[El`derina]] here.  I was wondering how i would cause a creature or NPC to play attack animations at the same time the Player does... i see no function for IsAttacking or something like that and no blocktypes either that would assist in this.
hey, [[El`derina]] here.  I was wondering how i would cause a creature or NPC to play attack animations at the same time the Player does... i see no function for IsAttacking or something like that and no blocktypes either that would assist in this.
Thanks in advance if anyone can fiqure this out.
Thanks in advance if anyone can fiqure this out.
[[Omzy]] Do you mean you want the npc to be a mirror image of the player's animations? That might be difficult. There is a function for combat-> IsInCombat. Of course, if you wanted two npc's to "fight" without hurting each other, like for training, you could create a training package that makes each actor play their combat idles during the package and set the package to run whenever you want with conditions or the AddScriptPackage function. You might also write a script for a certain actor that makes him run the script when the player is near and is in combat.
Anonymous user

Navigation menu