Whats best attach a weapon to a anim mesh

Blitz3D Forums/Blitz3D Programming/Whats best attach a weapon to a anim mesh

Duckstab[o](Posted 2005) [#1]
I am currently doing some low poly characters for my Rpg/Tactics game. I want to make a Wide selection of weapons available yet have no idea how to attach a weapon mesh to a animated character Model

I am using Wings as the modeler and pacemaker to animate
and help would be brill as making 100 versions of each character aint my cup of tea :)

thanks


GfK(Posted 2005) [#2]
Whats best attach a weapon to a anim mesh
A bit of string is best.


Duckstab[o](Posted 2005) [#3]
thanks mate :o i was thinking super glue
never mind maybe some will reply


scribbla(Posted 2005) [#4]
parent the weapon to a bone in the hand using findchild() or getchild()

i think its something like
1: grab the bone in the hand, you will need to know its name

handbone=getchild(entity$,bonename$)

2: parent the weapon to handbone

EntityParent weapon,handbone


Duckstab[o](Posted 2005) [#5]
thanks m8 got it sorted you saved me 10000000+hours of extra work :)


boomboom(Posted 2005) [#6]
oh and your probably go it, but best before you parent to find the world co-ords of the bone, then move the weapon to that point etc, then parent.


John Blackledge(Posted 2005) [#7]
Can I just add my thanks to experienced people like Tiler for taking the time to answer (what is for them) simple questions.
I remember how I had read the Blitz manual from cover to cover twice and still not got my head around abvious solutions like this.


scribbla(Posted 2005) [#8]
hiya John

not seen you for while...oohh you better be careful or i will put you on my list of people to nag when i have problems;)


John Blackledge(Posted 2005) [#9]
Flatterer! Anytime, Tiler.