Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.




Introduced in

Version:1.30

Description

Description:Returns a list of arrays. Each array contains the following: [<string:proxy type>, <position:proxy position>, <number:ID>, <object: unit>, <array: turret path>].
  • Proxy type can be:
    • "driver"
    • "gunner"
    • "commander"
    • "cargo"
  • Proxy position is relative to the vehicle.
  • ID is the ID of a cargo proxy.
  • Unit is the unit, sitting in the proxy.
  • Turret path is the path of the turret, or just an empty array, if it is not a turret.

This function has basically the same functionality as getCrewPos, with the difference that it works with GAME vehicles also. Please note Note that the proxy position for GAME vehicles is not accurate, and also does not change when e.g. a turret turns.

Syntax

Syntax:[vehicle] call fn_vbs_getCrewPos
Parameters:
  • vehicle: Object - The vehicle of the unit.
Return Value:Array

Warning

When using functions in VBS versions older than 3.4, certain limitations and requirements should be kept in mind - the main ones being that capitalization of the function name is crucial, and that #include "\vbs2\headers\function_library.hpp" has to be included in every script that utilizes it. More Category VBS Scripting Functions.

Examples

Examples:
[tank1] call fn_vbs_getCrewPos

Additional Information

See also: crew, getCrewPos, fn vbs createVehicle
Multiplayer: 
Problems: 

Notes