Jump to content
Sign in to follow this  
nullsystems

Password/passcode vehicle lock?

Recommended Posts

Hi all

I have a dilema, something which I cannot find anywhere im afraid.

Im trying to achieve the following:

On get_in vehicle

  request passcode

     If correct: start engine

  else: get_out

Does anyone know how to achieve this?

Essentially I want the user to have to enter a small password to be able to start the engine, or within 10 seconds he is booted out the vehicle.

Any ideas on how to achieve this?

My appologies if I am in the wrong forum.

Share this post


Link to post
Share on other sites

This really belongs in the scripting section.

It would indeed be possible using dialogs and some basic scripting.

Share this post


Link to post
Share on other sites

Sorry about the wrong location.

Do you know of any good tutorials or starting points for dialogs?

What I was thinking was:

10 Buttons ( 1-0 )

6 buttons are required for passcode.

Each time one of the 6 is pressed, game_logic sets the objectives to DONE, once all 6 are done, it causes a trigger to start the vehicles engine.

If a wrong button is pressed, you are ejected from the vehicle, the objectives are set to fail, and you must wait 10 seconds until its unlocked to try again.

Pretty easy if you think about it, just never done dialog buttons before.

Share this post


Link to post
Share on other sites

There are one or two tutorials on dialogs I believe, but I don't know where to find them I'm afraid.

Your solution makes it sound way too difficult. It would be a lot simpler to create passworded vehicles than that. No need for game logics or objectives. Variables would do fine.

Share this post


Link to post
Share on other sites

Exellent,

I just finnished the password/lock system, works great.

Only problem is, someone can lock the vehicle from the ground if they dont know the correct code.

Is there a way to add an UNLOCK menu to a vehicles menu while your inside ? ( add to the eject, get out, manual fire etc ).

Share this post


Link to post
Share on other sites

addaction is open to everyone. so not just inside. a dialog could be used though, just send it to a corner.

Share this post


Link to post
Share on other sites

Clearly you want to make sure that the vehicle cannot be locked while there is someone inside it!

Share this post


Link to post
Share on other sites

Here you'll find vektorboson's Dialog-Tut. 1.0 ... but this one is german only. Don't know if there's an english version, too.

MfG Medicus smile_o.gif

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×