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 (NewbieZorro, TipmyPip, 1 invisible), 19,045 guests, and 8 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
Attaching an entity to another one #149744
08/23/07 00:20
08/23/07 00:20
Joined: Aug 2007
Posts: 11
Quebec, Canada
Devious_Duck Offline OP
Newbie
Devious_Duck  Offline OP
Newbie

Joined: Aug 2007
Posts: 11
Quebec, Canada
Hi,
How can i attach an entity (a gun) on a particular vertex on another entity (a guy) ?

Thanks


Thrones of Ragnarok -Under Construction
Re: Attaching an entity to another one [Re: Devious_Duck] #149745
08/23/07 01:26
08/23/07 01:26
Joined: Mar 2007
Posts: 677
0x00000USA
M
MrCode Offline
User
MrCode  Offline
User
M

Joined: Mar 2007
Posts: 677
0x00000USA
Look at the manual!

Use vec_for_vertex. That should be what you're looking for.

But if you're looking to match the gun's pan, tilt, and roll with the arm's, then you'll need to do some calculations (vec_for_vertex doesn't do that automatically).


Code:
void main()
{
    cout << "I am MrCode,";
    cout << "hear me roar!";
    system("PAUSE");
}
Re: Attaching an entity to another one [Re: MrCode] #149746
08/23/07 01:32
08/23/07 01:32
Joined: Aug 2007
Posts: 11
Quebec, Canada
Devious_Duck Offline OP
Newbie
Devious_Duck  Offline OP
Newbie

Joined: Aug 2007
Posts: 11
Quebec, Canada
Thanks !
I looked in the manual, but its hard to find a function when you have no idea how its called, or if it even exists.

Thanks again.


Thrones of Ragnarok -Under Construction

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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