assignAsGunner: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - "[[Category:Scripting Commands ArmA|" to "[[Category:Scripting Commands Armed Assault|")
(28 intermediate revisions by 11 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|A]]
{{Command|Comments=
[[Category:Scripting Commands OFP 1.97|A]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|A]]
[[Category:Scripting Commands ArmA|A]]


| ofp |Game name=


<h2 style="color:#000066">'''''soldier'' assignAsGunner ''vehicle'''''</h2>
|1.00|Game version=


|arg= global |Multiplayer Arguments=


'''Operand types:'''
|eff= global |Multiplayer Effects=
____________________________________________________________________________________________


'''soldier:''' [[Object]]
| Assign a unit as gunner of a vehicle. Used together with [[orderGetIn]] to order subordinate units to get in as gunner of a specific vehicle. Before usage of this command a subordinate unit hasn't got the option to get into the gunner place of the vehicle. |DESCRIPTION=
____________________________________________________________________________________________


'''vehicle:''' [[Object]]
| unitName '''assignAsGunner''' vehicleName |SYNTAX=


'''Type of returned value:'''
|p1= unitName: [[Object]] |PARAMETER1=


[[Nothing]]
|p2= vehicleName: [[Object]] |PARAMETER2=


'''Description:'''
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________
 
|x1= <pre>_soldier1 assignAsGunner _tank
[_soldier1] orderGetIn true</pre> |EXAMPLE1=
____________________________________________________________________________________________


Assign soldier as gunner of given vehicle.
| [[assignAsCommander]], [[assignAsDriver]], [[assignAsCargo]], [[assignAsTurret]], [[assignAsCargoIndex]], [[moveInCargo]], [[moveInCommander]], [[moveInDriver]], [[moveInGunner]], [[moveInTurret]], [[assignedVehicleRole]], [[assignedVehicle]], [[unassignVehicle]], [[leaveVehicle]] |SEEALSO=


}}


'''Example:'''
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


player '''assignAsGunner''' tankOne
<!-- Note Section END -->
</dl>


<h3 style="display:none">Bottom Section</h3>


Comments:
[[Category:Scripting Commands|ASSIGNASGUNNER]]
 
[[Category:Scripting Commands OFP 1.99|ASSIGNASGUNNER]]
To make the unit get into the vehicle you will need to use the command [[orderGetIn]] after you have issued the '''assignAsGunner''' command.
[[Category:Scripting Commands OFP 1.96|ASSIGNASGUNNER]]
[[Category:Scripting Commands OFP 1.46|ASSIGNASGUNNER]]
[[Category:Scripting Commands Armed Assault|ASSIGNASGUNNER]]
[[Category:Command_Group:_Unit_Control|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Vehicle_Assignment|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]

Revision as of 17:46, 3 June 2020

Hover & click on the images for description

Description

Description:
Assign a unit as gunner of a vehicle. Used together with orderGetIn to order subordinate units to get in as gunner of a specific vehicle. Before usage of this command a subordinate unit hasn't got the option to get into the gunner place of the vehicle.
Groups:
Uncategorised

Syntax

Syntax:
unitName assignAsGunner vehicleName
Parameters:
unitName: Object
vehicleName: Object
Return Value:
Nothing

Examples

Example 1:
_soldier1 assignAsGunner _tank
[_soldier1] orderGetIn true

Additional Information

See also:
assignAsCommanderassignAsDriverassignAsCargoassignAsTurretassignAsCargoIndexmoveInCargomoveInCommandermoveInDrivermoveInGunnermoveInTurretassignedVehicleRoleassignedVehicleunassignVehicleleaveVehicle

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