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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, Akow, degenerate_762), 1,430 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 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