Author Topic: Finding driver?  (Read 588 times)

How do you find the driver of a vehicle? Is lastDrivingClient the best way?

No, the driving client is always mounted to slot 0 I think. So you should be able to do:

Code: [Select]
if(isObject(%vehicle.getMountNodeObject(0).client))
{
   %driver = %vehicle.getMountNodeObject(0);
}

Right, makes sense. Thanks!