Jump to content

Willy

MTA Contributors
  • Posts

    118
  • Joined

  • Last visited

Posts posted by Willy

  1. just realised a potential problem, but testing would figure it out - to do with passengers if you've got one at 1, or 2 missing, but one at 2 or 3 (respectively) i.e. you've got a gap, it'll either not put the passenger after the gap back in, or it might put them in at the wrong seat.

    or... it could work fine.

    just thought i'd let you know - could be easily solved with other conditions and stuff.

  2. just realised a potential problem, but testing would figure it out - to do with passengers if you've got one at 1, or 2 missing, but one at 2 or 3 (respectively) i.e. you've got a gap, it'll either not put the passenger after the gap back in, or it might put them in at the wrong seat.

    or... it could work fine.

    just thought i'd let you know - could be easily solved with other conditions and stuff.

  3. I don't think it is too hard, find out what the vehicle element is and then setElementPosition (it'll be the same car, just moved).

    then just do a simple loop to check that the passengers:

     passenger = {}for i = 0,  getVehicleMaxPassengers(theVehicle) dopassenger[i] = getVehicleOccupant (theVehicle, i )if passenger[i] thenremovePlayerFromVehicle( passenger[i])--and setElementPosition(passenger[i], blah blah) here--endsetElementPosition(theVehicle, blah, blah)for k=0,#passenger dowarpPlayerIntoVehicle(passenger[k],theVehicle,k)end 

    i'd do something like that. :)

  4. I don't think it is too hard, find out what the vehicle element is and then setElementPosition (it'll be the same car, just moved).

    then just do a simple loop to check that the passengers:

      
    passenger = {} 
    for i = 0,  getVehicleMaxPassengers(theVehicle) do 
    passenger[i] = getVehicleOccupant (theVehicle, i ) 
    if passenger[i] then 
    removePlayerFromVehicle( passenger[i]) 
    --and setElementPosition(passenger[i], blah blah) here 
    -- 
    end 
    setElementPosition(theVehicle, blah, blah) 
    for k=0,#passenger do 
    warpPlayerIntoVehicle(passenger[k],theVehicle,k) 
    end 
      
    

    i'd do something like that. :)

  5. i don't know whether this would work, and it is purely speculative, but once you and the car hits the marker you take the player out of the car (removePlayerFromVehicle) , move them both to the interior (at different positions otherwise one will be in the other) and then put the player back in the car (warpPlayerIntoVehicle).

    I've got a feeling this was a fix for another bug that was similar. I may however be wrong. let me know how it goes.

  6. i don't know whether this would work, and it is purely speculative, but once you and the car hits the marker you take the player out of the car (removePlayerFromVehicle) , move them both to the interior (at different positions otherwise one will be in the other) and then put the player back in the car (warpPlayerIntoVehicle).

    I've got a feeling this was a fix for another bug that was similar. I may however be wrong. let me know how it goes.

×
×
  • Create New...