Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (Kingware, AndrewAMD, AemStones, RealSerious3D, degenerate_762), 837 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19054 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Attaching a weapon #83514
07/27/06 22:02
07/27/06 22:02
Joined: Feb 2006
Posts: 616
Netherlands
cartoon_baboon Offline OP
User
cartoon_baboon  Offline OP
User

Joined: Feb 2006
Posts: 616
Netherlands
Hi, I want to attach a weapon (axe, sword that sorta thing) to the hand of my character. What would you guys say is the best option?

- animating the weapon with the model and then seperating it (rather not 'cos this is more work, specially if I want to have more than one weapon)

- just attaching it and making sure it rotates with the hand (preferable, but only if it's gonna work properly)

Re: Attaching a weapon [Re: cartoon_baboon] #83515
07/28/06 00:09
07/28/06 00:09
Joined: Jan 2003
Posts: 1,738
Nashua New Hampshire
anonymous_alcoho Offline
Senior Developer
anonymous_alcoho  Offline
Senior Developer

Joined: Jan 2003
Posts: 1,738
Nashua New Hampshire
The first option is my prefered option b/c its easier codewise. All you have to do in that instance is to code it to follow the player. It's origin has already been set in MED to be in the hand of the model when the two are put together.


"Oh no, it's true! I'm a love magnet!" Calvin from Calvin and Hobbes My name's Anonymous_Alcoholic.
Re: Attaching a weapon [Re: anonymous_alcoho] #83516
07/28/06 14:28
07/28/06 14:28
Joined: Feb 2006
Posts: 616
Netherlands
cartoon_baboon Offline OP
User
cartoon_baboon  Offline OP
User

Joined: Feb 2006
Posts: 616
Netherlands
Well if nobody has a convincing argument against animating weapons with the models, I guess that's what I'll be doing.

Re: Attaching a weapon [Re: cartoon_baboon] #83517
07/28/06 16:13
07/28/06 16:13
Joined: Jan 2006
Posts: 968
EpsiloN Offline
User
EpsiloN  Offline
User

Joined: Jan 2006
Posts: 968
but its easyer to place a weapon on the hand at a certain vertex and point it to the direction between 2 vertices (on the hand)
..."convincing argument against animating weapons with the models"...I have one...if you have 2000 weapons in the game,what would you do? definitely wont animate them all.


Extensive Multiplayer tutorial:
http://mesetts.com/index.php?page=201
Re: Attaching a weapon [Re: EpsiloN] #83518
07/28/06 17:02
07/28/06 17:02
Joined: May 2005
Posts: 338
Brasil
Filipe Offline
Senior Member
Filipe  Offline
Senior Member

Joined: May 2005
Posts: 338
Brasil
one solution i found was to use a bone on the player hand. it's better than attaching it to a vertex because the bone also has direction, so you just set the weapon to the bone's position and direction. another good point is that you can get the bone by name, and not a number, so if you have more than one model that can be holding the weapon, you don't need to get the vertex number for each model, you just need that all of them have a bone with the same name...

Re: Attaching a weapon [Re: Filipe] #83519
07/28/06 17:09
07/28/06 17:09
Joined: Feb 2006
Posts: 616
Netherlands
cartoon_baboon Offline OP
User
cartoon_baboon  Offline OP
User

Joined: Feb 2006
Posts: 616
Netherlands
Now that sounds like an intersting idea. What bone would it be though- the bone at the start of the fingers?

Re: Attaching a weapon [Re: cartoon_baboon] #83520
07/28/06 17:36
07/28/06 17:36
Joined: May 2005
Posts: 338
Brasil
Filipe Offline
Senior Member
Filipe  Offline
Senior Member

Joined: May 2005
Posts: 338
Brasil
yes, if you have a bone for the character hand, you could make another one called 'weapon' from the hand bone,and attach the weapon to that bone...

Re: Attaching a weapon [Re: Filipe] #83521
07/28/06 17:58
07/28/06 17:58
Joined: Oct 2003
Posts: 246
A
Alberto Offline
Member
Alberto  Offline
Member
A

Joined: Oct 2003
Posts: 246
I tried both vertex method , by the way see also AUM, and bone method to attach a weapon
The latter is better, in my opinion

Re: Attaching a weapon [Re: Alberto] #83522
07/29/06 10:07
07/29/06 10:07

A
Anonymous
Unregistered
Anonymous
Unregistered
A



Quote:

What bone would it be though- the bone at the start of the fingers?



Just make a new bone in the palm or something.

I like the vertex option because it just allows me to make a weapon model and be done with it. I'm working on a game that has a lot of different weapons and characters, and in the middle of a battle, I want characters to be able to pick up a weapon that's just lying around. So creating animations for each weapon for each character is pretty extreme.

Re: Attaching a weapon [Re: ] #83523
07/30/06 02:57
07/30/06 02:57
Joined: Oct 2005
Posts: 4,771
Bay City, MI
lostclimate Offline
Expert
lostclimate  Offline
Expert

Joined: Oct 2005
Posts: 4,771
Bay City, MI
go to acknex resourses unlimited, and go to wdls/dlls, download vattach, it works perfect, i used it with the guns in my game

Page 1 of 2 1 2

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1