OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Bleumink 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.
-
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
-
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.
-
But I still want to know if it's possible to allow only one player to get in a certain vehicle.
-
Never mind, I've figured it out.