driver: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
back to [[Scripting_Reference#D|COMREF]]
<h2 style="color:#000066">'''driver ''vehicle'''''</h2>
<h2 style="color:#000066">'''driver ''vehicle'''''</h2>


'''Operand types:'''
'''Operand types:'''


vehicle: [[Object]]
'''vehicle:''' [[Object]]


'''Type of returned value:'''
'''Type of returned value:'''
Line 11: Line 14:
'''Description:'''
'''Description:'''


Driver of the vehicle, if vehicle is not vehicle but person, person is returned.
Driver of the '''vehicle''', if vehicle is not vehicle but person, person is returned.
 


'''Example:'''
'''Example:'''


? ('''driver''' (vehicle player) != player : goto "reassign"
? ('''driver''' ([[vehicle]] [[player]]) != [[player]] : [[goto]] "reassign"

Revision as of 11:31, 16 April 2006

back to COMREF

driver vehicle


Operand types:

vehicle: Object

Type of returned value:

Object

Description:

Driver of the vehicle, if vehicle is not vehicle but person, person is returned.


Example:

? (driver (vehicle player) != player : goto "reassign"