addVehicle: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Bot: Reverted to revision 92033 by killzone_kid on 2015-09-26T01:05:55Z)
m (template:command argument fix)
Line 10: Line 10:


| Adds a specified vehicle for use by a specified AI led group taking into account vehicle's cost. The vehicle will be considered as an available vehicle for use by this group.  
| Adds a specified vehicle for use by a specified AI led group taking into account vehicle's cost. The vehicle will be considered as an available vehicle for use by this group.  
When vehicle is added in this way, it can appear as a target for the enemy even if the vehicle is currently free of the crew. Vehicles with crew, which are placed in the editor, get automatically added to the group. To remove vehicle from a group, use [[leaveVehicle]]. |= Description
When vehicle is added in this way, it can appear as a target for the enemy even if the vehicle is currently free of the crew. Vehicles with crew, which are placed in the editor, get automatically added to the group. To remove vehicle from a group, use [[leaveVehicle]]. |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| groupName '''addVehicle''' vehicleName|= Syntax
| groupName '''addVehicle''' vehicleName|SYNTAX=


|p1= groupName: [[Group]]|= Parameter 1
|p1= groupName: [[Group]]|= Parameter 1
Line 19: Line 19:
|p2= vehicleName: [[Object]]|= Parameter 2
|p2= vehicleName: [[Object]]|= Parameter 2


| [[Nothing]] |= Return value
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
Line 27: Line 27:
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[leaveVehicle]], [[unassignVehicle]], [[createVehicleCrew]] |= See also
| [[leaveVehicle]], [[unassignVehicle]], [[createVehicleCrew]] |SEEALSO=


}}
}}

Revision as of 12:25, 7 April 2019

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

Description

Description:
Adds a specified vehicle for use by a specified AI led group taking into account vehicle's cost. The vehicle will be considered as an available vehicle for use by this group. When vehicle is added in this way, it can appear as a target for the enemy even if the vehicle is currently free of the crew. Vehicles with crew, which are placed in the editor, get automatically added to the group. To remove vehicle from a group, use leaveVehicle.
Groups:
Uncategorised

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:
leaveVehicleunassignVehiclecreateVehicleCrew

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

Posted on 22 Nov, 2008 00:40
Ceeeb
  • 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.
  • More than one vehicle can be added to a group, and more than one group can be added to a vehicle.
  • 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.

Bottom Section