assignedVehicleRole: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (bad example)
m (=)
Line 18: Line 18:
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''assignedVehicleRole''' unit|= Syntax
| [[Array]] <nowiki>=</nowiki> '''assignedVehicleRole''' unit|= Syntax


|p1= unit: [[Object]] |= Parameter 1
|p1= unit: [[Object]] |= Parameter 1

Revision as of 01:35, 25 August 2007

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

Description

Description:
Return the role a unit is assigned to within its assigned vehicle. The array which is returned contains:
  • [] - Not assigned to any vehicle
  • ["Driver"] - Assigned as driver
  • ["Cargo"] - Assigned as cargo
  • ["Turret", [turret path]] - Assigned to a turret
Groups:
Uncategorised

Syntax

Syntax:
Array = assignedVehicleRole unit
Parameters:
unit: Object
Return Value:
Array

Examples

Example 1:
_RoleArray=assignedVehicleRole player

Additional Information

See also:
See also needed

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

Bottom Section