Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, The_Judge, Grant), 898 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 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 | 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