assignedVehicle: Difference between revisions
Jump to navigation
Jump to search
m (Text replace - "{{uc:{{PAGENAME}}}}" to "{{uc:{{PAGENAME}}}} {{uc:{{PAGENAME}}}}") |
Killzone Kid (talk | contribs) (format) |
||
Line 10: | Line 10: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Return the vehicle a unit is assigned to. | | Return the vehicle a unit is assigned to. If no vehicle is assigned [[objNull]] is returned. |= Description | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | |'''assignedVehicle''' unit |= Syntax | ||
|p1= | |p1= unit: [[Object]] |= Parameter 1 | ||
| [[Object]] |= Return value | | [[Object]] |= Return value | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= < | |x1= <code>_vehicle = [[assignedVehicle]] [[player]];</code> |= Example 1 | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 02:03, 26 September 2015
Description
- Description:
- Return the vehicle a unit is assigned to. If no vehicle is assigned objNull is returned.
- Groups:
- Uncategorised
Syntax
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
Categories:
- Scripting Commands
- Introduced with Arma version 1.05
- Arma: New Scripting Commands
- Arma: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands ArmA
- Command Group: Object Information
- Command Group: Vehicle Assignment
- Scripting Commands ArmA2
- Scripting Commands Arma 3
- Scripting Commands Take On Helicopters