Gamestudio Links
Zorro Links
Newest Posts
Camera always moves upwards?
by clonman. 02/21/26 09:29
Zorro version 3.0 prerelease!
by TipmyPip. 02/20/26 13:22
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
Hedge on FXCM, 4 or 5?
by Martin_HH. 02/16/26 16:09
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (TipmyPip, Quad), 6,903 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
alx, ApprenticeInMuc, PatrickH90, USER0328, Sfrdragon
19199 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Holding a weapon #306905
01/25/10 18:27
01/25/10 18:27
Joined: Jan 2010
Posts: 22
Bielefeld, Germany
T
TIEclon Offline OP
Newbie
TIEclon  Offline OP
Newbie
T

Joined: Jan 2010
Posts: 22
Bielefeld, Germany
Hi community,

i got a little problem with a weapon: When i try to give the weapon (a bow) into the player's hand, it always rotates when i'm moving.

I use the following code:

action players_weapon ()
{
my.flags =PASSABLE;
while (player == 0) {wait (1);}
my.scale_x =0.43;
my.scale_y =0.43;
my.scale_z =0.43;
while (1)
{
vec_for_bone(my.x,player,"bone7"); //bone7=hand
vec_for_bone(my.pan,player,"bone7");
wait (1);
}
}

I think thge bone i use for the moving is rotating, but why? I mean, the vertex from the bone don't move and actually i didn't use that bone in the walk animation. I there any other way to move and rotate the bow exactly like the hand?

Re: Holding a weapon [Re: TIEclon] #306911
01/25/10 19:12
01/25/10 19:12
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
For the pan use ang_for_bone instead vec_for_bone

Re: Holding a weapon [Re: Widi] #306967
01/26/10 09:26
01/26/10 09:26
Joined: Jan 2010
Posts: 22
Bielefeld, Germany
T
TIEclon Offline OP
Newbie
TIEclon  Offline OP
Newbie
T

Joined: Jan 2010
Posts: 22
Bielefeld, Germany
Thank you so much!


Gamestudio download | 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