enablePersonTurret: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(dev)
m (Some wiki formatting)
 
(41 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma3|= Game name
|game1= arma3
|version1= 1.34


|dev|= Game version <!-- 1.33 -->
|gr1= Turrets


____________________________________________________________________________________________
|descr= Enables or disables firing from a vehicle cargo position. To get the turret path use [[assignedVehicleRole]] or [[getCargoIndex]] command.


| Enables or disables firing from a vehicle cargo position. To get the turret path use [[assignedVehicleRole]] or [[getCargoIndex]] command. |= Description
|s1= vehicle [[enablePersonTurret]] [turretPath, enable]
____________________________________________________________________________________________


| vehicle '''enablePersonTurret''' [turretPath, enable] |= Syntax
|p1= vehicle: [[Object]]


|p1= vehicle: [[Object]] |= Parameter 1
|p2= turretPath: [[Array]] format [[Turret Path]]


|p2= [turretPath, enable] [[Array]] |= Parameter 2
|p3= enable: [[Boolean]]
|p3= turretPath: [[Array]] |= Parameter 3
|p4= enable: [[Boolean]] |= Parameter 4


| [[Nothing]] |= Return value
|r1= [[Nothing]]
____________________________________________________________________________________________
 
|x1= <code>heli [[enablePersonTurret]] <nowiki>[</nowiki>[1],[[true]]];</code> |= Example 1


____________________________________________________________________________________________
|x1= <sqf>heli enablePersonTurret [[1], true];</sqf>
 
| [[assignedVehicleRole]], [[moveInTurret]], [[turretUnit]], [[assignAsTurret]], [[getCargoIndex]], [[moveInCargo]], [[assignAsCargoIndex]], [[emptyPositions]]|= See also


|seealso= [[assignedVehicleRole]] [[allTurrets]] [[moveInTurret]] [[turretUnit]] [[assignAsTurret]] [[getCargoIndex]] [[moveInCargo]] [[assignAsCargoIndex]] [[emptyPositions]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 10:46, 8 August 2022

Hover & click on the images for description

Description

Description:
Enables or disables firing from a vehicle cargo position. To get the turret path use assignedVehicleRole or getCargoIndex command.
Groups:
Turrets

Syntax

Syntax:
vehicle enablePersonTurret [turretPath, enable]
Parameters:
vehicle: Object
turretPath: Array format Turret Path
enable: Boolean
Return Value:
Nothing

Examples

Example 1:
heli enablePersonTurret [[1], true];

Additional Information

See also:
assignedVehicleRole allTurrets moveInTurret turretUnit assignAsTurret getCargoIndex moveInCargo assignAsCargoIndex emptyPositions

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