Jump to content

[HELP] Custom Weapons


Papa Beans
 Share

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Stop toying and make games

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...