Jump to content

avdieking

Member
  • Posts

    273
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by avdieking

  1. // work around for m113 bug
    _vehicle = ["M113Ambul_TK_EP1"];
    _playerVeh = (vehicle player) in _vehicle;
    _hasCrew = player in (crew _vehicle);
    _vehicleDamage = damage _vehicle;
    waitUntil {_vehicleDamage == 1}; //It is important to put two '=' AND it is WaitUntil not WaitUntill
        if (_playerVeh && _hasCrew) then {
            sleep 1;
            player setDamage 1;
        };

    By the way;

    once ONE M113 is going to get exploded, the script will stop because of the WaitUntil.

    I'd put a While loop in.

     

    Maybe some typo's, check again if using the code above.

     

    forgot im scripting in a few languages and there are diffrences

  2. // work around for m113 bug

    _vehicle = ["M113Ambul_TK_EP1"];
    _hasCrew = player in (crew _vehicle);
    _vehicleDamage = damage _vehicle;
    waitUntill {_vehicleDamage = 1};
        if (_vehicle and _hasCrew) then {
        sleep 1;
            player setDamage 1;
        };

×
×
  • Create New...