Support Module Code Not Working When User Re-logs

  1. 6 years ago
    Edited 6 years ago by da59fifty1

    I am using four helicopter transport support modules in my mission and I have each module run code within the code line of the module. The code is meant to call a file and enable a scroll wheel option to fix the rappelling in that specific helicopter. The code works however once a user re-logs from the server, the code no longer works and is called. The only way to get the code to work again is to restart the server.

    Pasted in transport module code:

    [[[this], "AddAction.sqf"], "BIS_fnc_execVM", nil, false, true] call BIS_fnc_MP;

    AddAction File:

    _object = _this select 0;
    _object addAction ["<t color=""#33CCFF"">Tell Pilot To Hover</t>","HoverCall.sqf",nil,1,false, true, "", "true", 5, false];

    HoverCall File:

    _object = _this select 0;
    _object disableAI "Move";
    vehicle player vehicleChat "Get Ready To Fast Rope";
    sleep 3;
    vehicle player vehicleChat "You Will Have 20 Seconds To Rappel";
    sleep 3;
    titleText ["<t color='#ff0000' size='2'>GO GO GO!", "PLAIN", -1, true, true];
    vehicle player vehicleChat "GO GO GO";
    sleep 20;
    vehicle player sideChat "ALL Ready to Move";
    _object enableAI "Move";
 

or Sign Up to reply!