assignedVehicle: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "[[Category:Scripting Commands ArmA|" to "[[Category:Scripting Commands Armed Assault|") |
Lou Montana (talk | contribs) 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= | ||
|p1= unit: [[Object]] |PARAMETER1= | |p1= unit: [[Object]] |PARAMETER1= | ||
Line 23: | Line 22: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[addVehicle]], [[assignAsDriver]], [[assignAsCargo]], [[assignAsCommander]], [[assignAsGunner]], [[unassignVehicle]], | | [[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 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 18:19, 21 July 2020
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