Home   Help Search Login Register  

Author Topic: Locking vehicles for all but one player  (Read 1429 times)

0 Members and 1 Guest are viewing this topic.

Bleumink

  • Guest
Locking vehicles for all but one player
« on: 26 Aug 2002, 10:13:33 »
Is it possible to do this:
Player 1 can only get in vehicle 1 and player 2 can only get in vehicle 2 etc.

Nasty Buttler

  • Guest
Re:Locking vehicles for all but one player
« Reply #1 on: 26 Aug 2002, 10:34:45 »
hmmm well the only way i would do it is to never unlock the vehicles.....
2 radio channels needed for everyone.
have a radio command that activates near the cars in question.....
make a little script that detects the distance of the radio caller to his car....so have a little start bit like this

_radiocaller = _this select 0

?(trev == _radiocaller):goto "checkcar3"

#checkcar3
trev close to car?::movein car trev
if not
message not close enough to car trev
exit

and the other one would be to get out of the car.....
have it so it ejects or runs a getout action....that should do it....
Good Luck

sounds complex, it is for what u want, but i think it would garrentee that only one person would get into each car AND only there car

Bleumink

  • Guest
Re:Locking vehicles for all but one player
« Reply #2 on: 26 Aug 2002, 12:16:24 »
I could also use AddAction to simulate the get in and get out actions, but stuff like that is not quite what i'm looking for.

As a temporary solution, I use LeaveVehicle when the wrong guy gets in the vehicle, that works quite nicely.
« Last Edit: 26 Aug 2002, 12:17:03 by Bleumink »

Bleumink

  • Guest
Re:Locking vehicles for all but one player
« Reply #3 on: 31 Aug 2002, 17:23:00 »
But I still want to know if it's possible to allow only one player to get in a certain vehicle.

Bleumink

  • Guest
Re:Locking vehicles for all but one player
« Reply #4 on: 06 Sep 2002, 09:45:56 »
Never mind, I've figured it out.