Difference between revisions of "vehicle"

From Bohemia Interactive Community
Jump to navigation Jump to search
m
Line 1: Line 1:
[[Category:Scripting Commands|VEHICLE]]
+
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|VEHICLE]]
+
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|VEHICLE]]
 
[[Category:Scripting Commands ArmA|VEHICLE]]
 
  
 +
| ofp |= Game name
  
<h2 style="color:#000066">''' vehicle ''unit'''''</h2>
+
|1.00|= Game version
 +
____________________________________________________________________________________________
  
+
| Vehicle in which given unit is mounted. If none, unit is returned. |= Description
'''Operand types:'''
+
____________________________________________________________________________________________
  
'''unit:''' [[Object]]
+
| '''vehicle''' unit |= Syntax
  
'''Type of returned value:'''
+
|p1= unit: [[Object]] |= Parameter 1
  
[[Object]]
+
| [[Object]] |= Return value
 +
____________________________________________________________________________________________
 +
 
 +
|x1= <pre>? vehicle [[player]] != [[player]] : [[hint]] "Player is in a vehicle"</pre> |= Example 1
 +
____________________________________________________________________________________________
  
'''Description:'''
+
|  |= See also
  
Vehicle in which given unit is mounted.
+
}}
  
If none, unit is returned.
+
<h3 style="display:none">Notes</h3>
 +
<dl class="command_description">
 +
<!-- Note Section BEGIN -->
  
 +
<!-- Note Section END -->
 +
</dl>
  
'''Example:'''
+
<h3 style="display:none">Bottom Section</h3>
  
? '''vehicle''' [[player]] != [[player]] : [[hint]] "Player is in a vehicle"
+
[[Category:Scripting Commands|VEHICLE]]
 +
[[Category:Scripting Commands OFP 1.96|VEHICLE]]
 +
[[Category:Scripting Commands OFP 1.46|VEHICLE]]
 +
[[Category:Scripting Commands ArmA|VEHICLE]]

Revision as of 23:52, 1 August 2006

Introduced with Operation Flashpoint version 1.001.00
Hover & click on the images for descriptions

Description

Description:
Vehicle in which given unit is mounted. If none, unit is returned.

Syntax

Syntax:
vehicle unit
Parameters:
unit: Object
Return Value:
Object

Examples

Example 1:
? vehicle [[player]] != [[player]] : [[hint]] "Player is in a vehicle"

Additional Information

See also:
See also needed
Groups:
Uncategorised

Notes

i
Only post proven facts here. Report bugs on the Feedback Tracker and discuss on the Arma Discord or on the Forums.

Notes

Bottom Section