assignedVehicle: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "[[Category:Scripting Commands ArmA|" to "[[Category:Scripting Commands Armed Assault|")
m (Fix wild comma in seeAlso)
Line 7: Line 7:


|arg= local |Multiplayer Arguments=
|arg= local |Multiplayer Arguments=
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 13: Line 12:
____________________________________________________________________________________________
____________________________________________________________________________________________


|'''assignedVehicle''' unit |SYNTAX=
| [[assignedVehicle]] unit |SYNTAX=


|p1=  unit: [[Object]] |PARAMETER1=
|p1=  unit: [[Object]] |PARAMETER1=
Line 23: Line 22:
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[addVehicle]], [[assignAsDriver]], [[assignAsCargo]], [[assignAsCommander]], [[assignAsGunner]], [[unassignVehicle]], [[leaveVehicle]] |SEEALSO=
| [[addVehicle]], [[assignAsDriver]], [[assignAsCargo]], [[assignAsCommander]], [[assignAsGunner]], [[unassignVehicle]], [[leaveVehicle]] |SEEALSO=
 
}}
}}


Line 37: Line 35:
<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>


[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Armed Assault|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Object_Information|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Vehicle_Assignment|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Command Group: Object Information|{{uc:{{PAGENAME}}}}]]
[[Category:Command Group: Vehicle Assignment|{{uc:{{PAGENAME}}}}]]

Revision as of 19:19, 21 July 2020

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

Description

Description:
Returns 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:
addVehicleassignAsDriverassignAsCargoassignAsCommanderassignAsGunnerunassignVehicleleaveVehicle

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