Difference between revisions of "Questions"
→Causing NPC/Creatures to mimic an action the player takes
imported>TheImperialDragon (→Item scaling questions..: skills have to be set too) |
imported>El`derina |
||
Line 744: | Line 744: | ||
[[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. | [[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. | ||
[[El`derina]] No, not quite.... im working on wolfform for my mod. what i need is for the wolf to play its attack animation whenever the player attacks- problem is that the only possible way to detect this that i know of is having the player equiped with an enchanted weapon that sets a global varible for my other scripts to run off of whenever the player hits something... and that wont even make it work all the time since you'd HAVE to have a monster there to hit it. what i need is an alternative way to detect if the animation is playing for the player, or if a keyboard stroke was made to attack/block. so far i have everything but this one thing working- may have to make it a travel form only if i cant find a way around this | |||
==Raising or lowering the water level using a script?== | ==Raising or lowering the water level using a script?== |