Papa Beans Posted January 18, 2014 Posted January 18, 2014 Hey guys it's me again. I was wondering how one might implement a custom weapon. I know how to create models but my problem is I am not sure how to assign it to the char. Do I assign a bone where I want to have the char hold it? And can someone link me to a detailed Leadwerks 3 Custom Character tutorial? I have the character but I have no clue what to name the bones or how to have Leadwerks recognize the bones. Thank you for your time, Cody Mihelich Quote
shadmar Posted January 18, 2014 Posted January 18, 2014 Bones are entities. so you can parent a weapon to your hand bone. You can lookup bones by using something like .. hand=modelwithbonesentity:FindChild("left_hand") weaponentity:Parent(hand) Quote HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB
Papa Beans Posted January 18, 2014 Author Posted January 18, 2014 Bones are entities. so you can parent a weapon to your hand bone. You can lookup bones by using something like .. hand=modelwithbonesentity:FindChild("left_hand") weaponentity:Parent(hand) Thank you so much! So would the game automaticly create a hitbox around my weapon?(Its melee) or would I have to add that some how. Quote
nate066 Posted January 18, 2014 Posted January 18, 2014 Thank you so much! So would the game automaticly create a hitbox around my weapon?(Its melee) or would I have to add that some how. i think you would have to add it Quote
AggrorJorn Posted January 18, 2014 Posted January 18, 2014 Load the weapon in your scene during editing. Make sure the hitbox is okay, save everything as a prefab. Load in the prefab with code. Quote
YouGroove Posted January 18, 2014 Posted January 18, 2014 Just make a prefab containing : -Weapon non collidable -A BSP Box collidable as child of Weapon In your character code : attach each frame the prebad to the hand of the character Beware physic little box agains Cylnder character controller physics will work ? you must test it. Quote Stop toying and make games
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.