addVehicle: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (fixed link to leaveVehicle)
No edit summary
 
(65 intermediate revisions by 12 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma |= Game name
|game1= arma1
|version1= 1.05


|1.05|= Game version
|game2= arma2
____________________________________________________________________________________________
|version2= 1.00


| Adds a specified vehicle for use by a specified AI led group. The vehicle will be considered as an available vehicle for use by his group. |= Description
|game3= arma2oa
____________________________________________________________________________________________
|version3= 1.50


| [[Group]] '''addVehicle''' [[Object|Vehicle]]|= Syntax
|game4= tkoh
|version4= 1.00


|p1= group: [[Group]]|= Parameter 1
|game5= arma3
|version5= 0.50


|p2= [[Object|Vehicle]]: [[Object]]|= Parameter 2
|arg= local


| none |= Return value
|gr1= Object Manipulation
____________________________________________________________________________________________
 
|x1= _group addVehicle _vehicle |= Example 1
____________________________________________________________________________________________


| [[leaveVehicle_unit|leaveVehicle]] |= See also
|descr= Adds a specified vehicle for use by a specified AI led group.
{{Feature|informative|See [[AI Group Vehicle Management]] for more information.}}


}}
|s1= groupName [[addVehicle]] vehicleName
 
|p1= groupName: [[Group]]
 
|p2= vehicleName: [[Object]]


<h3 style="display:none">Notes</h3>
|r1= [[Nothing]]
<dl class="command_description">


<!-- Note Section BEGIN -->
|x1= <sqf>_grp addVehicle _vehicle;</sqf>
<dd class="notedate"></dd>
<dt class="note">'''[[User:Ceeeb|Ceeeb]]'''</dt>
<dd class="note">
* This command works best when used on empty vehicles. If used on a vehicle already driven by a member of another group, the driver will continue under his own group's orders, which may not benefit the addVehicle group.<br>
* More than one vehicle can be added to a group, and more than one group can be added to a vehicle.<br>
* When deciding whether to board a vehicle, AI leaders seem to only consider the transport benefit of a vehicle, ignoring any combat benefits the vehicle may provide.</dd>
<!-- Note Section END -->
</dl>


<h3 style="display:none">Bottom Section</h3>
|x2= Using on crewed vehicle:
<sqf>group tank addVehicle tank;</sqf>


[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
|seealso= [[leaveVehicle]] [[unassignVehicle]] [[createVehicleCrew]] [[assignedVehicles]] [[assignedGroup]] [[fullCrew]]
[[Category:Scripting Commands ArmA|{{uc:{{PAGENAME}}}}]]
}}
[[Category:Command_Group:_Object_Manipulation|{{uc:{{PAGENAME}}}}]]

Latest revision as of 16:18, 31 August 2022

Hover & click on the images for description

Description

Description:
Adds a specified vehicle for use by a specified AI led group.
See AI Group Vehicle Management for more information.
Groups:
Object Manipulation

Syntax

Syntax:
groupName addVehicle vehicleName
Parameters:
groupName: Group
vehicleName: Object
Return Value:
Nothing

Examples

Example 1:
_grp addVehicle _vehicle;
Example 2:
Using on crewed vehicle:
group tank addVehicle tank;

Additional Information

See also:
leaveVehicle unassignVehicle createVehicleCrew assignedVehicles assignedGroup fullCrew

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