vehicles: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|seealso= *\[\[([^ ]+)\]\], \[\[([^ ]+)\]\]" to "|seealso= $1 $2")
m (Text replacement - "<code>_([a-zA-Z0-9_]+) = \[\[([a-zA-Z0-9]+)\]\];?<\/code>" to "<sqf>_$1 = $2;</sqf>")
Line 26: Line 26:
|r1= [[Array]]
|r1= [[Array]]


|x1= <code>_vehicles = [[vehicles]];</code>
|x1= <sqf>_vehicles = vehicles;</sqf>


|seealso= [[allCurators]] [[allGroups]] [[allDead]] [[playableUnits]] [[switchableUnits]] [[allUnitsUAV]] [[allDeadMen]] [[agents]] [[allUnits]]
|seealso= [[allCurators]] [[allGroups]] [[allDead]] [[playableUnits]] [[switchableUnits]] [[allUnitsUAV]] [[allDeadMen]] [[agents]] [[allUnits]]
}}
}}

Revision as of 21:21, 7 May 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:
allCurators allGroups allDead playableUnits switchableUnits allUnitsUAV allDeadMen agents allUnits

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