vehicles: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Switching to uniformed upper case for all *UAV* commands)
(updated SeeAlso)
 
(47 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


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


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


| Returns a list of all vehicles. |= Description
|game3= arma2oa
____________________________________________________________________________________________
|version3= 1.50


| '''vehicles''' |= Syntax
|game4= tkoh
|version4= 1.00


| [[Array]] |= Return value
|game5= arma3
____________________________________________________________________________________________
|version5= 0.50
 
|x1= <pre>_vehicles = vehicles</pre> |= Example 1
____________________________________________________________________________________________


| [[allCurators]], [[allGroups]], [[allDead]], [[playableUnits]], [[switchableUnits]], [[allUnitsUAV]], [[allDeadMen]], [[agents]] |= See also
|eff= local


}}
|gr1= Object Detection


<h3 style="display:none">Notes</h3>
|descr= Returns an array of all vehicles available to current client. This command returns both empty and crewed vehicles <u>but not soldiers</u>. It will also return "WeaponHolderSimulated" of dead bodies (weapon on the ground). Vehicles created with [[createVehicleLocal]] will only be returned on the client that created them.
<dl class="command_description">
<!-- Note Section BEGIN -->


<dd class="notedate">Posted on June 24, 2007
|s1= [[vehicles]]
<dt class="note">'''[[User:5133p39|5133p39]]'''
<dd class="note">As far as version 1.08 it is confirmed that this command is returning '''only vehicles''' and '''no soldiers'''.


|r1= [[Array]]


<dd class="notedate">Posted on July 15, 2011
|x1= <sqf>_vehicles = vehicles;</sqf>
<dt class="note">'''[[User:kju|kju]]'''
<dd class="note">Just to clarify: It returns both empty and crewed vehicles.


<dd class="notedate">Posted on december 22, 2013
|seealso= [[allGroups]] [[allUnits]] [[units]] [[entities]] [[agents]] [[playableUnits]] [[switchableUnits]] [[allPlayers]] [[allDead]] [[allDeadMen]] [[allUnitsUAV]] [[allCurators]] [[allObjects]] [[allMissionObjects]] [[allSimpleObjects]] [[allMines]]
<dt class="note">'''[[User:Killzone_Kid|Killzone_Kid]]'''
}}
<dd class="note">In Arma 3 it will also return "WeaponHolderSimulated" of dead bodies (weapon on the ground)
 
</dl>
 
<h3 style="display:none">Bottom Section</h3>
 
[[Category:Scripting Commands|VEHICLES]]
[[Category:Scripting Commands ArmA|VEHICLES]]
[[Category:Scripting Commands ArmA2|VEHICLES]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]

Latest revision as of 11:54, 5 November 2022

Hover & click on the images for description

Description

Description:
Returns an array of all vehicles available to current client. This command returns both empty and crewed vehicles but not soldiers. It will also return "WeaponHolderSimulated" of dead bodies (weapon on the ground). Vehicles created with createVehicleLocal will only be returned on the client that created them.
Groups:
Object Detection

Syntax

Syntax:
vehicles
Return Value:
Array

Examples

Example 1:
_vehicles = vehicles;

Additional Information

See also:
allGroups allUnits units entities agents playableUnits switchableUnits allPlayers allDead allDeadMen allUnitsUAV allCurators allObjects allMissionObjects allSimpleObjects allMines

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