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 (TipmyPip, AndrewAMD, NewbieZorro), 16,655 guests, and 7 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
Page 2 of 2 1 2
Re: [Free] Attach Items - Demo & Script [Re: Blink] #125955
05/14/07 03:03
05/14/07 03:03
Joined: Sep 2003
Posts: 281
Arkansas\USA
raiden Offline OP
Member
raiden  Offline OP
Member

Joined: Sep 2003
Posts: 281
Arkansas\USA
Hi Blink, I have uploaded a new file, the contents contain the original plus a new wdl called: objects_temp6.wdl.

This should now be template_6 code friendly.

Let me know if that works for you.

-raiden


"It doesn't matter if we win or lose, it's how we make the game."
--------------------
Links: 3DGS for Dummies
Re: [Free] Attach Items - Demo & Script [Re: raiden] #125956
05/14/07 04:03
05/14/07 04:03
Joined: Jan 2006
Posts: 2,157
Connecticut, USA
Blink Offline

Expert
Blink  Offline

Expert

Joined: Jan 2006
Posts: 2,157
Connecticut, USA
Great new code Raiden, works perfectly. one last question. where do i get the parameters for x,y and tilts,etc? i know the vertex #, i got that from med. but i tried to adjust it and the attached item ended on my models butt, lol. i am simulating that it is two bracelets, one shoots lasers, and the other is the force shield, so when my character picks them, up i wanted each of them to attach to both of my models wrists.

Re: [Free] Attach Items - Demo & Script [Re: Blink] #125957
05/14/07 11:38
05/14/07 11:38
Joined: Sep 2003
Posts: 281
Arkansas\USA
raiden Offline OP
Member
raiden  Offline OP
Member

Joined: Sep 2003
Posts: 281
Arkansas\USA
Hi Blink, glad the code worked for you. To set the x,y,z and pan, tilt, roll you can do that in the behavior panel. You access it by right clicking on the pickup object in wed and choosing Behavior, it looks like this:



You can see there are fields you can edit to offset the object anywhere you like on the player. Just edit those x,y,z values x is front to back, y is left to right and z is up and down. Just remember you have to put in negative numbers to offset one direction and positive numbers the other.

-raiden


"It doesn't matter if we win or lose, it's how we make the game."
--------------------
Links: 3DGS for Dummies
Re: [Free] Attach Items - Demo & Script [Re: raiden] #125958
05/14/07 20:17
05/14/07 20:17
Joined: Jan 2006
Posts: 2,157
Connecticut, USA
Blink Offline

Expert
Blink  Offline

Expert

Joined: Jan 2006
Posts: 2,157
Connecticut, USA
ok, so i have to just try to input random numbers? there is nowhere i can look to get these parameters, right? i used the setting that you posted above, and the bracelet ended up sitting on my models butt, lol. i will play with it a while, thanks.


My Famous Quotes: "Hip hop is like a virus, infecting everyone and everything around it. Every form of media has some way,shape or form, assimilated hip hop into it." It has also mutated into other strains like, trip hop, house, rap, gangster, and conscious forms. Once you are infected with it, its with you for life."
Re: [Free] Attach Items - Demo & Script [Re: Blink] #125959
05/15/07 03:19
05/15/07 03:19
Joined: Sep 2003
Posts: 281
Arkansas\USA
raiden Offline OP
Member
raiden  Offline OP
Member

Joined: Sep 2003
Posts: 281
Arkansas\USA
The best place to start is with 0's, this basically sets the attached objects to the exact vertex position of the vertex number you specified in the behavior panel. Then just tweak the values little by little to get the placement you are after.

Keep in mind if your object models origin is way off in med, then it will offset already that much. Also, don't forget to save and rebuild after you makes changes in the behavior panel.

Good Luck.

-raiden


"It doesn't matter if we win or lose, it's how we make the game."
--------------------
Links: 3DGS for Dummies
Re: [Free] Attach Items - Demo & Script [Re: raiden] #125960
05/15/07 17:18
05/15/07 17:18
Joined: Jan 2006
Posts: 2,157
Connecticut, USA
Blink Offline

Expert
Blink  Offline

Expert

Joined: Jan 2006
Posts: 2,157
Connecticut, USA
i will have to play with it a bit. i am using the cbabe model, and i am trying to have her pick up bracelets that attach to both wrists. its kinda difficult.

Re: [Free] Attach Items - Demo & Script [Re: Blink] #125961
05/15/07 22:45
05/15/07 22:45
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
lol, there's a much easier way to find the vertex number

Open your model in MED, go into vertex mode, select the vertex you want to use (AND ONLY THAT VERTEX), and on the bottom right corner of MED, it will say something like "Vertex: #x", where x is the vertex number...


good luck!


xXxGuitar511
- Programmer
Re: [Free] Attach Items - Demo & Script [Re: xXxGuitar511] #125962
05/16/07 04:45
05/16/07 04:45
Joined: Jan 2006
Posts: 2,157
Connecticut, USA
Blink Offline

Expert
Blink  Offline

Expert

Joined: Jan 2006
Posts: 2,157
Connecticut, USA
i have the vertex number from MED it's 31. thats not the problem. the bracelet attaches to the vertex, but its not on the way it should be, it is sideways, and it isnt really on the wrist, it is on the top of it. i guess i have to play with the xyand z and tilt. i am getting frustrated.


My Famous Quotes: "Hip hop is like a virus, infecting everyone and everything around it. Every form of media has some way,shape or form, assimilated hip hop into it." It has also mutated into other strains like, trip hop, house, rap, gangster, and conscious forms. Once you are infected with it, its with you for life."
Page 2 of 2 1 2

Moderated by  adoado, checkbutton, mk_1, Perro 

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