assignedVehicle: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(format)
Line 10: Line 10:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Return the vehicle a unit is assigned to.<br>If no vehicle is assigned [[objNull]] is returned. |= Description
| Return the vehicle a unit is assigned to. If no vehicle is assigned [[objNull]] is returned. |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[Object]] <nowiki>=</nowiki> '''assignedVehicle''' unitName |= Syntax
|'''assignedVehicle''' unit |= Syntax


|p1=  unitName: [[Object]] |= Parameter 1
|p1=  unit: [[Object]] |= Parameter 1


| [[Object]] |= Return value
| [[Object]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <pre>_vehicle= assignedVehicle player</pre> |= Example 1
|x1= <code>_vehicle = [[assignedVehicle]] [[player]];</code> |= Example 1
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 02:03, 26 September 2015

-wrong parameter ("Arma") defined!-1.05
Hover & click on the images for description

Description

Description:
Return the vehicle a unit is assigned to. If no vehicle is assigned objNull is returned.
Groups:
Uncategorised

Syntax

Syntax:
assignedVehicle unit
Parameters:
unit: Object
Return Value:
Object

Examples

Example 1:
_vehicle = assignedVehicle player;

Additional Information

See also:
addVehicleassignAsDriverassignAsCargoassignAsCommanderassignAsGunnerunassignVehicle, leaveVehicle

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section