Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/06/23 11:29
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
7 registered members (fairtrader, Quad, miwok, Martin_HH, AndrewAMD, alibaba, dpn), 581 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Attatching to vertexes? #231367
10/13/08 23:42
10/13/08 23:42
Joined: Sep 2008
Posts: 69
U
upsidedownman Offline OP
Junior Member
upsidedownman  Offline OP
Junior Member
U

Joined: Sep 2008
Posts: 69
Ok so i was trying to attach a gun to a hand using vec_for_vertex
but it never works i was just kinda throwing random lines in to see if it would work.

Can any1 tell me how to do this?And just to clarify if i attach the gun to vertex the gun will actually be able to move with the hand and not get all messed up right? because i tried doing like

gun.x = my.x + 20;
gun.y = my.y + 3;
gun.z = my.z + 5;
gun.pan = my.pan;

but it never works right because when the hand move the gun is all off. So in the manual it said that vec_for_vertex is good for attaching guns and stuff.

So can any1 help me out and show me how to do this or does any1 know a different way to attach guns to arms/hands without having to make abunch of models with the guns already on the hands?

Re: Attatching to vertexes? [Re: upsidedownman] #231465
10/14/08 17:32
10/14/08 17:32
Joined: Nov 2007
Posts: 1,032
Croatia
croman Offline
Serious User
croman  Offline
Serious User

Joined: Nov 2007
Posts: 1,032
Croatia
Code:
while(hold_gun == 1)
{
   vec_for_vertex(me, temp, vertex_num);
   // vertex_num is variable that holds the number of vertex that
   // will be used to place gun onto its position
   vec_set(gun.x, temp.x); // places the gun in proper position
   gun.pan = player.pan;
   wait(1);
}


that should work



Ubi bene, ibi Patria.
Re: Attatching to vertexes? [Re: croman] #231475
10/14/08 18:29
10/14/08 18:29
Joined: Sep 2008
Posts: 69
U
upsidedownman Offline OP
Junior Member
upsidedownman  Offline OP
Junior Member
U

Joined: Sep 2008
Posts: 69
awesome thanks


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