I have a sword like mesh object parented to an bone of an armature.
At the moment I have the sword set up with a property (‘attack’). All characters will die on collision with this property.
The problem is, I only want the enemies to die when the armature connected to the sword is playing a stabbing or slashing action.
Technically all the game’s characters are (currently) the same and are generated from a class, so this may require a different solution to the norm. I could have probably set up message actuators targeting the specific object if this weren’t the case.
There is probably a few ways to do this.
Is there is a way to enable or disable (delete or add?) the ‘attack’ property at a current frame of animation? This way when the collision happens without the action nothing should happen with the property disabled.
Maybe there is a way of grabbing the colliding object and getting the parent (armature) frame of the current action.
Any advice with regards to approach would be awesome, thanks.