{"name":"driver","title":"driver","type":"command","url":"https://community.bistudio.com/wiki/driver","revid":308923,"updated":"2022-04-18T18:03:59Z","groups":["Object Manipulation"],"status":"ok","games":{"ofp":"1.00","ofpe":"1.00","arma1":"1.00","arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"ofp 1.00","arma3_since":"0.50","locality":{"argument":"global"},"description":"Returns the driver of a vehicle.","syntaxes":[{"syntax":"driver vehicle","params":[{"name":"vehicle","type":"Object","type_expr":"Object"}],"returns":{"type":"Object","type_expr":"Object","description":"-\nThe unit sitting in the driver place is returned. If vehicle is not a vehicle but a person, the person is returned.","text":"Object -\nThe unit sitting in the driver place is returned. If vehicle is not a vehicle but a person, the person is returned."},"form":"unary","right":{"text":"vehicle"}}],"examples":[{"code":["(driver _tank) action [\"getout\", _tank];"]},{"code":["driver vehicle player isEqualTo player // check if player is driver of current vehicle"]}],"see_also":["commander","gunner","crew","currentPilot"],"notes":[{"user":"Hardrock","date":"2006-08-03T14:32:00Z","text":"*Notes from before the conversion:*\n\nIt is also possible to find the driver of a vehicle by placing a **D** after the name of the vehicle so *Tank1D* and ***driver** Tank1* both refer to the same unit, providing the original driver has not got out of the tank.\n\nThe difference between the two is *Tank1D* is always the unit that was driver of the tank when the mission started, whilst ***driver** Tank1* is the driver which is now there."}]}