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 / General instruction to get into and out of vehicles

Author
Message
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 22nd Sep 2006 04:48 Edited at: 22nd Sep 2006 05:08
Yes I know I have asked a simliar thing before but I would like to know is there an instruction that can allow you to get into flying as well as all ground vehicles ? not just specific to one type of vehicle?
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 22nd Sep 2006 05:23
Hello,

I don't think there is a general command that does this but I would approach it like this.

For all vehicle situations I would essencially have 4 models:
1. One of the main character with walking around animation
2. One of the vehicle that sits there empty
3. One that's an animation of the character getting into the vehicle
4. One of the vehicle driving around with the character in it

You could use a flag that calls any of the 4 states:

If flag = 1
Go to the code that moves the character and only allows charcter stuff

If flag = 2
Whatever interaction is available with the empty vehicle (maybe it can be blown up, or entered)

If flag = 3
Switch to the model that is the animation of the character getting inside or climbing aboard

If Flag = 4
Show the model of the vehicle with the character and goto the specific routines of what actions can be performed

If you create the models to just run through the animations, you don't have to account for trying to get the character and the vehicle to interact. You just use the models to transition "scenes" like in a movie - then you just position your new action model and run the code that applies to it's abilities.

Know what I mean?

Enjoy your day.
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 22nd Sep 2006 05:49
Yeah I get you Latch the thing is I have seen how you can get the models in and out of each other but wanted to know about including it in flight
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 22nd Sep 2006 11:54
that if flag instruction is hthat a hidden command for DBC?
Kentaree
22
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Clonmel, Ireland
Posted: 22nd Sep 2006 15:07
No, its a variable. There are no specific instructions whatsoever to do with vehicles, you have to write it all yourself

vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 22nd Sep 2006 16:17
Oh I see thanks Kentaree

Login to post a reply

Server time is: 2025-05-25 22:26:30
Your offset time is: 2025-05-25 22:26:30