weaponsTurret

From Bohemia Interactive Community
Revision as of 08:43, 11 March 2011 by .kju (talk | contribs) (Added weaponsTurret example of vehicle driver and automatic turret position by assignedVehicleRole use)
Jump to navigation Jump to search
Hover & click on the images for description

Description

Description:
Returns all weapons of given turret. Use turret path [-1] for driver's turret.
Groups:
Uncategorised

Syntax

Syntax:
vehicle weaponsTurret turretPath
Parameters:
vehicle: Object
turretPath: Array
Return Value:
Array of Strings

Examples

Example 1:
_weapons = vehicle player weaponsTurret [0,0]
Example 2:
_weapons = _tank weaponsTurret [0]
Example 3:
_driverWeapon = _ka50pilot weaponsTurret [-1] _weaponsForAnyTurrentPosition = (vehicle player) weaponsTurret ((assignedVehicleRole player) select 1)

Additional Information

See also:
addMagazineTurretmagazinesTurretremoveMagazinesTurretremoveMagazineTurretweaponsassignedVehicleRole

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