vehicle

From Bohemia Interactive Community
Revision as of 02:22, 16 May 2016 by Benargee (talk | contribs)
Jump to navigation Jump to search
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:
Object = vehicle unitName
Parameters:
unitName: Object
Return Value:
Object

Examples

Example 1:
SQS ? vehicle player != player : hint "Player is in a vehicle"
Example 2:
SQFif ( vehicle player != player ) then { hint "Player is in a vehicle"; };

Additional Information

See also:
See also needed

Notes

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

Notes

Posted on February 16, 2014
Strangepete
As of Arma 3, ( vehicle unit == unit ) is TRUE for units in the vehicle's Driver seat, IF vehicle not named manually in Editor. Example 2 will return TRUE if vehicle pre-named in Editor; Example 2 will return FALSE if vehicle not pre-named, and player in Driver seat

Bottom Section