assignAsGunner: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "[[Category:Scripting Commands ArmA|" to "[[Category:Scripting Commands Armed Assault|")
(25 intermediate revisions by 10 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{Command|Comments=
____________________________________________________________________________________________
____________________________________________________________________________________________


| ofp |= Game name
| ofp |Game name=


|1.00|= Game version
|1.00|Game version=


|arg= global |= Arguments in MP
|arg= global |Multiplayer Arguments=


|eff= global |= Effects in MP
|eff= global |Multiplayer Effects=
____________________________________________________________________________________________
____________________________________________________________________________________________


| 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
| 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=
____________________________________________________________________________________________
____________________________________________________________________________________________


| unit '''assignAsGunner''' vehicle |= Syntax
| unitName '''assignAsGunner''' vehicleName |SYNTAX=


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


|p2= vehicle: [[Object]] |= Parameter 2
|p2= vehicleName: [[Object]] |PARAMETER2=


| [[Nothing]] |= Return value
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <pre>soldier1 assignAsGunner tank
|x1= <pre>_soldier1 assignAsGunner _tank
[soldier1] orderGetIn true</pre> |= Example 1
[_soldier1] orderGetIn true</pre> |EXAMPLE1=
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[assignAsCommander]], [[assignAsDriver]], [[assignAsCargo]] |= See also
| [[assignAsCommander]], [[assignAsDriver]], [[assignAsCargo]], [[assignAsTurret]], [[assignAsCargoIndex]], [[moveInCargo]], [[moveInCommander]], [[moveInDriver]], [[moveInGunner]], [[moveInTurret]], [[assignedVehicleRole]], [[assignedVehicle]], [[unassignVehicle]], [[leaveVehicle]] |SEEALSO=


}}
}}
Line 39: Line 39:


<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>
Old Notes (temporary):
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|ASSIGNASGUNNER]]
[[Category:Scripting Commands|ASSIGNASGUNNER]]
[[Category:Scripting Commands OFP 1.99|ASSIGNASGUNNER]]
[[Category:Scripting Commands OFP 1.96|ASSIGNASGUNNER]]
[[Category:Scripting Commands OFP 1.96|ASSIGNASGUNNER]]
[[Category:Scripting Commands OFP 1.46|ASSIGNASGUNNER]]
[[Category:Scripting Commands OFP 1.46|ASSIGNASGUNNER]]
[[Category:Scripting Commands ArmA|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