Arma 3 Scripting

crew

  • Global argument
  • Arma 3 v0.50
  • First in Operation Flashpoint v1.00

Command · Markdown · JSON · original wiki page

Description

Returns the crew (both dead and alive) of the given vehicle.

Syntax

crew vehicleName

Parameters:

Returns: Array - an array with all units in the vehicle is returned.

Examples

Example 1

player in (crew _tank);

See also

commander · driver · gunner · fullCrew · assignedVehicleRole

Community notes

Ofpwarior

The crew command will return crew in order [driver,gunner,commander,turrets,cargo]

SilentSpike

The crew command will return an empty array if the object has no crew - this includes objects that can't hold crew. If used on a unit (man, module, etc.) it will return an array containing that unit.