Since introduction of FFV and some dead body in vehicle handling, it is now problematic to detect if given body is in vehicle. Before it was very straight forward
unit != vehicle unit - means unit is in vehicle dead or alive.
Now after about 30 seconds of unit being dead statistics about the unit get all messed up. Observe:
bob is alive and kicking driving his offroad
alive bob - true
group bob - C Alpha 1-1
crew car - [bob]
driver car - bob
assignedvehiclerole bob - ["driver"]
bob in car - true
bob in crew car - true
bob != vehicle bob - true
bob is shot dead
alive bob - false
group bob - C Alpha 1-1
crew car - [bob]
driver car - bob
assignedvehiclerole bob - ["driver"]
bob in car - true
bob in crew car - true
bob != vehicle bob - true
in about 30 seconds
alive bob - false
group bob - <NULL-group>
crew car - [bob]
driver car - bob
assignedvehiclerole bob - []
bob in car - false
bob in crew car - true
bob != vehicle bob - false
as you can see quite a mess after 30 seconds. Whats more, moveinany will not move player to driver even though driver is available via action menu. because the dead bob is maybe inside the car and maybe not. So player moveinany car puts player in the FFV position instead of driver. GetOut EH assigned to the cal will also not trigger when dead bob is thrown out after player used action menu to get to the driver seat.
This is major mess up and workarounds are complicated.