Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (Ayumi, NewbieZorro, TipmyPip), 13,888 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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