1 registered members (TipmyPip),
18,546
guests, and 5
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
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
OP
Member
|
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

Expert
|

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
OP
Member
|
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

Expert
|

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
OP
Member
|
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: Blink]
#125961
05/15/07 22:45
05/15/07 22:45
|
Joined: Mar 2006
Posts: 2,503 SC, United States
xXxGuitar511
Expert
|
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

Expert
|

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."
|
|
|
|