System Cloth & Weapons
Blitz3D Forums/Blitz3D Programming/System Cloth & Weapons
| ||
Hey! In my game I want to put a system for changing clothes and weapons. This came in the RPG and MMO games such as World of Warcraft. How does it do? yours, Leszek Król |
| ||
Hi there For clothes, you could use different textures for the player models, and for weapons, just findchild to get the hand, and attach the weapon to it. That what I would do |
| ||
Hi Have you got a example to "findchild to get the hand" |
| ||
Findchild returns a handle to the entity (in this example case a bone which is similar to a pivot) by locating the first child entity with the same "name" as specified in the findchild command. So if you have modeled a humanoid creature and you have a bone called "right hand" for example then you can use the command as follows: myrighthandhandle=findchild(myhumanoidentity,"right hand") and if it exists the value for myrighthandhandle will be non-zero. Then simply take your sword/axe/death dealing device and use the entityparent command: entityparent deathdealingdevice,myrighthandhandle You may have to adjust the local position and orientation of your 'deathdealingdevice' to ensure it is in an appropriate position while held. http://blitzbasic.com/b3ddocs/command.php?name=findchild&ref=goto |