Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
any1 know how to make it where the vehicle thats being towed can have people in it?and its not inside the first vehicle?and so you have the vehicle being towed have another vehicle behind it being towed?
/ / We limit the speed of walking and it is forbidden to ride in a vehicle as the object is brought
while {! isNull R3F_LOG_joueur_deplace_objet && alive player} do
{
if (vehicle player! = player) then
{
globalChat STR_R3F_LOG_ne_pas_monter_dans_vehicule player;
player action ["eject", vehicle player];
sleep 1;
};
i have no idea what that means lol,i had Fred do this code for me ,the only script i added was auto refuel,so if u can fix it plz do,i have no idea how,i would appreciate the help
/ / We limit the speed of walking and it is forbidden to ride in a vehicle as the object is brought
while {! isNull R3F_LOG_joueur_deplace_objet && alive player} do
{
/*
if (vehicle player! = player) then
{
globalChat STR_R3F_LOG_ne_pas_monter_dans_vehicule player;
player action ["eject", vehicle player];
sleep 1;
};
*/
what do i replace ["eject", vehicle player]; with?
i did everything you said,still wont let me stay in the vehicle,it says "This Vehicle is being Transported"
// Ne pas monter dans un véhicule qui est en cours de transport
_objet addEventHandler ["GetIn",
{
if (_this select 2 == player) then
{
_this spawn
{
if ((!(isNull (_this select 0 getVariable "R3F_LOG_est_deplace_par")) && (alive (_this select 0 getVariable "R3F_LOG_est_deplace_par"))) || !(isNull (_this select 0 getVariable "R3F_LOG_est_transporte_par"))) then
{
player action ["eject", _this select 0];
player globalChat STR_R3F_LOG_transport_en_cours;
};
};
};
}];
/*
// Ne pas monter dans un véhicule qui est en cours de transport
_objet addEventHandler ["GetIn",
{
if (_this select 2 == player) then
{
_this spawn
{
if ((!(isNull (_this select 0 getVariable "R3F_LOG_est_deplace_par")) && (alive (_this select 0 getVariable "R3F_LOG_est_deplace_par"))) || !(isNull (_this select 0 getVariable "R3F_LOG_est_transporte_par"))) then
{
player action ["eject", _this select 0];
player globalChat STR_R3F_LOG_transport_en_cours;
};
};
};
}];
*/
Looking through the code, I found this in the "\R3F_ARTY_AND_LOG\R3F_LOG\objet_deplacable\deplacer.sqf" file... Maybe that's what you're looking for!
I google translated the comment for you
Code:/ / We limit the speed of walking and it is forbidden to ride in a vehicle as the object is brought while {! isNull R3F_LOG_joueur_deplace_objet && alive player} do { if (vehicle player! = player) then { globalChat STR_R3F_LOG_ne_pas_monter_dans_vehicule player; player action ["eject", vehicle player]; sleep 1; };