Home   Help Search Login Register  

Author Topic: Making vehicles unlocked as default.  (Read 2638 times)

0 Members and 1 Guest are viewing this topic.

Kraken

  • Guest
Making vehicles unlocked as default.
« on: 31 Aug 2002, 22:41:26 »
I am making a MP sector control mission, and I got some vehicles to spawn and respawn correctly.. the only problem is that for some reason the default lock type is locked...  the vehicles respawn when i blow them up, but i can't get in them.

Is there anyway to make it so that by default, all vehicles are unlocked?  If that isn't possible, is there a way via a trigger or a script to unlock all vehicles when they are created.

Thanks in advance.

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:Making vehicles unlocked as default.
« Reply #1 on: 01 Sep 2002, 01:36:20 »
Assuming yer using "createVehicle", I must confess that I dunno how to
unlock a spawned vehicle ("jeep1 lock false" won't do  :( ).

But I do know that if you "moveinDriver" some d00d and then make him get out via some WP or alike, then the vehicle is unlocked  :P :)

odd but true!

Offline icarus_uk

  • Members
  • *
  • LiarLiarPants Inflame True
    • [furryclan]
Re:Making vehicles unlocked as default.
« Reply #2 on: 01 Sep 2002, 01:42:38 »
If you are using createvehicle, give it a while and the vehicle should unlock itself eventually.

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:Making vehicles unlocked as default.
« Reply #3 on: 01 Sep 2002, 01:45:10 »
...so its just a matter of size  :D *cough*


I mean the size of your cpu & the size of the mission etc. ?!

Kraken

  • Guest
Re:Making vehicles unlocked as default.
« Reply #4 on: 01 Sep 2002, 01:51:54 »
Hmm... how long should it take?  I let my mission run for about ten minutes and still no unlocked vehicle.  FYI, I used the Sector Control wizard...  would this in some way prevent me from getting in vehicles?  And yes, i am using the createVehicle command in my script.

EDIT:  I just checked my mission, and even when i make a vehicle using empty>car>jeep, or whatever, it is still unlocked if i have the lock type set to default.  I have to set the lock type to unlocked to be able to enter it.  This is really confusing, any ideas?
« Last Edit: 01 Sep 2002, 01:54:07 by Kraken »

Offline icarus_uk

  • Members
  • *
  • LiarLiarPants Inflame True
    • [furryclan]
Re:Making vehicles unlocked as default.
« Reply #5 on: 01 Sep 2002, 02:24:17 »
Do createvehicle'd vehicles get given a name?  Have you tried adding   Name Lock FALSE   in the script?

Kraken

  • Guest
Re:Making vehicles unlocked as default.
« Reply #6 on: 01 Sep 2002, 02:49:03 »
Yes i have tried that, so unless i'm doing it wrong, it doesn't work.  Like, is this the correct syntax?

abrams1 Lock FALSE

where abrams1 is the name of the tank i want to unlock.

Offline icarus_uk

  • Members
  • *
  • LiarLiarPants Inflame True
    • [furryclan]
Re:Making vehicles unlocked as default.
« Reply #7 on: 01 Sep 2002, 02:50:48 »
Thats the syntax alright.  Have you looked at other vehicle respawn scripts so see how they do it?

There might be on posted somewhere in the multiplayer forums, or dePBO an existing mission and see how its done there.

Kraken

  • Guest
Re:Making vehicles unlocked as default.
« Reply #8 on: 01 Sep 2002, 05:42:04 »
I used a different script, but still all vehicles are locked by default...  I am quite certain that the problem is not with the script itself, since I have tried using my first script in a different mission and it worked correctly.

I think that for some reason the mission has it so that whenever a vehicle is set to lock type "default", it interprets that as locked.  What I need to do, is find out how, by either altering the mission.sqm or one of the other files, like maybe description.ext (although i doubt it) change the default lock type to unlocked...  I'm going to do some hunting around in notepad.  Thanks for the help guys.

DeusRich

  • Guest
Re:Making vehicles unlocked as default.
« Reply #9 on: 01 Sep 2002, 10:22:32 »
maybe there is something you can type in the description.ext that will set the default to unloacked - i think it is unlocked anyway but u should be able to confirm it somehow as it seems to me that its not anything wrong with your script, just the overall mechanics.
to test this theory, create a radio w/e trigger in your mission, and then create a vehicle, so it is a no-thrills createvehicle command, called without external scripts, and see if you can get in that (btw wait about 30 secs because it locks vehicles for about that anyway when they are called with createvehicle)