Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / In and Out of Vehicles Using "Glue ,Unglue Object" Commands

Author
Message
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 15th Oct 2004 01:20
Can anybody please tell me how I can get player and A.I pilot's in and out of vehicles using the "Glue, Unglue Object" commands I have tried to do it myself but my vehicle model keeps disappearing

So can I get some help please or even can I get a programmer to either help me on a freelance basis or even join my team as Iat the moment I am doing every single thing
BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 15th Oct 2004 01:56
I would be tempted to have a hidden character in the vehicle. When you get in, hide the normal one and show the in-vehicle one, and vice versa.

BatVink
http://biglaugh.co.uk/catalog AMD 3000+ Barton, 512Mb Ram, 120 Gig Drive space, GeForce 5200 FX 128 Mb, Asus A7N8X Mobo.
Terms & Conditions apply
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 15th Oct 2004 02:13
yes I tried something similiar with my code if the charetor got into the vehicle I had the charector hidden, then when the charector got out then the charector was shown

I did have some code by arkelli it is different and I tried to do the same in and out thing with the code using an actual car model but what I found is that the car stayed where it was and the player drove of I it would still act as if the player charector was ion avehicle but obvoiulsy wasn't I shall have to put that in a different thread and upload my modifications on that and see if anyone can work that out
Mr Underhill
22
Years of Service
User Offline
Joined: 23rd Apr 2003
Location: The Forgotten Worlds...
Posted: 15th Oct 2004 02:33
Is your car object separated by limbs? If not, you can use limb 0 to attach to.
Here's what you do:
When you're getting in the car, play the animation of getting in.
Then glue the character to the car (limb 0 if you don't have a better one).
Move the car (not the character).
When getting out, ungule the character and play animation.

Does this help?

“Do you wish me a good morning, or mean that it is a good morning whether I want it or not; or that you feel good this morning; or that it is a morning to be good on?” -Gandalf
BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 15th Oct 2004 06:28
You might need to upgrade to a later fix pack. 5.4 wasn't very good at gluing objects.

BatVink
http://biglaugh.co.uk/catalog AMD 3000+ Barton, 512Mb Ram, 120 Gig Drive space, GeForce 5200 FX 128 Mb, Asus A7N8X Mobo.
Terms & Conditions apply
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 15th Oct 2004 07:24
Batvink I am using DBC 1.13 enhanced Not DBP I will try this Mr Underhill but I am not sure it will work as arkelli wasn't using the Glue Unglue commands
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 18th Oct 2004 22:58
I think the proplem is in the "do gosub" commands that seems to cut out the other model but I am not sure how to stop it from cutting out the other model and its code
bibz1st
22
Years of Service
User Offline
Joined: 2nd Jan 2003
Location:
Posted: 19th Oct 2004 05:02
might be better using newxvalue etc....might not!
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 19th Oct 2004 18:54 Edited at: 19th Oct 2004 19:07
I used newzvalue and newxvalue, still it cuts out here is the code

vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 27th Nov 2004 22:55
Can anyone help me with this? Please I am going mad
bibz1st
22
Years of Service
User Offline
Joined: 2nd Jan 2003
Location:
Posted: 28th Nov 2004 22:45
you seem to have your hovercraft setup routine inside your DO/LOOP, also you must remember when gluing objects to other objects the glued object will be at position 0,0,0 unless you offset it from the object your gluing to, also remember that when scaling objects, that the original size will still be used if using the built in collision system.Did I explain that ok?
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 29th Nov 2004 23:19
Yes so you explained that OK take the hovercraft out of the DO LOOP when I do I still can't get the charector into the hovercraft and the hovercraft moves about on its own in a circle.

Still I will try this again

Login to post a reply

Server time is: 2025-05-24 16:58:07
Your offset time is: 2025-05-24 16:58:07