addVehicle: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (new command needs populating.)
No edit summary
 
(73 intermediate revisions by 15 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


| Added 1.05 needs populating. |= Description
|game3= arma2oa
____________________________________________________________________________________________
|version3= 1.50


| '''addVehicle''' vehicle |= Syntax
|game4= tkoh
|version4= 1.00


| |= Parameter 1
|game5= arma3
|version5= 0.50


| |= Return value
|arg= local
____________________________________________________________________________________________
 
|x1=  |= Example 1
____________________________________________________________________________________________


| |= See also
|gr1= Object Manipulation


}}
|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]]


<h3 style="display:none">Notes</h3>
|p2= vehicleName: [[Object]]
<dl class="command_description">


<!-- Note Section BEGIN -->
|r1= [[Nothing]]


<!-- Note Section END -->
|x1= <sqf>_grp addVehicle _vehicle;</sqf>
</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}}}}]]
}}

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