Difference between revisions of "Questions"
→Causing NPC/Creatures to mimic an action the player takes
imported>El`derina |
imported>Omzy |
||
Line 745: | Line 745: | ||
[[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 | [[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 | ||
As for now, there is no way to find the current animation playing. I've spent hours and hours trying to figure out when the player is blocking. I even set up a collision box that travels with the player so that when the player blocks, the shield moves into the collision box and the shield's OnCollision block runs. None of it worked. It appears that an object involved in animation does not execute its own code and does not really involve itself in the physics system, only when it's on the ground. I put in the wishlist a request for some animation functions. There are a lot of cool things to be done if this feature is implemented. --[[User:Omzy|Omzy]] 11:10, 19 June 2006 (EDT) | |||
==Raising or lowering the water level using a script?== | ==Raising or lowering the water level using a script?== |