While melee attacking and throwing fireballs and stuff is pretty easy to do, I can't really come up with a way to shoot a bow.
I would like for the bowstring to be pulled back and the arrow to shoot towards an enemy. Is there a simple way to do this?
For shooting the arrow I could spawn it on a bone and then do a magical switcheroo when it fires to just have an object move towards the enemy. I don't know how I would go about animating the bow's string to be pulled back. I'm using equipment viewers to show weapons and shields on characters.
I could still make the bowstring invisible, it is a string after all, but the lowpoly art style I'm currently using makes it look slightly silly.
As for the arrow - either have a dummy arrow on your bow to toggle on/off and spawn an arrow when actually shooting, or spawn the arrow on the bow (mount it) and send it flying (unmounting + movement) when shooting.
Shooting the actual arrow could either be done via simple movement nodes, or using physics via the rigidbody nodes.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Also, I might run into problems with having only one possible prefab to attach to the weapon data in ORK. Not in the position to check it out right now, but it's something I'm expecting to be a problem.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
So I should make sure the bow is skinned to the bones in blender(or maya or whatever) and ORK can pick up on that, as long as it's all named the same, the animation is there on the character, and I've setup the equipment viewer with child linking?
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
I've tried a whole bunch of things, but nothing seems to work. D: In the image you can see the setup that I thought would most likely have to work when I look at the 'Child Linking'-how to.
The bow prefab is shown, but the string is not animating along with the character's animation, it's just moving along with the equipment viewer on the cc_weapon bone. The bow is skinned and uses the same naming as the bones in the character it's getting attached to. I tried several different paths in the child linking section, this one seems like it should be correct.
Can you see what I'm doing wrong? Might be hard from a single screenshot. Should the bow have all the same bones as the character rig all the way from the root?
Also, unless the first child link is moved independent from the bow/viewer, it's probably not needed - the weapon itself will follow the equipment viewer (since it's parented to it), so you only need to add the child objects that should move independent from it.
When testing it, try moving the combatant's child objects for the strings and see if the bow's strings follow it - if that's the case, it's set up correctly.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!