gunner: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replace - "</dt>" to "")
m (Text replacement - "(\|[pr][0-9]+ *= *[^-\r\n]+) *- *T([a-z])" to "$1 - t$2")
 
(44 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| ofp |= Game name
|game1= ofp
|version1= 1.00


|1.00|= Game version
|game2= ofpe
|version2= 1.00


|arg= global |= Arguments in MP
|game3= arma1
____________________________________________________________________________________________
|version3= 1.00


| Returns the gunner of a vehicle. |= Description
|game4= arma2
____________________________________________________________________________________________
|version4= 1.00


| [[Object]] <nowiki>=</nowiki> '''gunner''' vehicle |= Syntax
|game5= arma2oa
|version5= 1.50


|p1= vehicle: [[Object]] |= Parameter 1
|game6= tkoh
|version6= 1.00


| [[Object]] - 
|game7= arma3
The person sitting in the gunner place is returned. If vehicle is not a vehicle but a person, the person is returned. |= Return value
|version7= 0.50
____________________________________________________________________________________________
 
|x1= <pre>(gunner _tank1) action ["getout",_tank1]</pre> |= Example 1
____________________________________________________________________________________________


| [[commander]], [[driver]], [[crew]] |= See also
|arg= global


}}
|gr1= Object Manipulation
 
|descr= Returns the gunner of a vehicle.


<h3 style="display:none">Notes</h3>
|s1= [[gunner]]  vehicle
<dl class="command_description">
<!-- Note Section BEGIN -->


<dd class="notedate">Posted on 2 January, 2007 - 13:10</dd>
|p1= vehicle: [[Object]]
<dt class="note">'''[[User:UNN|UNN]]'''<dd class="note">
The [[gunner]] command will only return a single gunner. If the vehicle has occupied, multiple turrets. See this discussion on the official forums, for an alternative:


[http://www.flashpoint1985.com/cgi-bin/ikonboard311/ikonboard.cgi?s=a28320fa4c4e659219eac08ac65093aa;act=ST;f=71;t=56128 Need an array with a vehicle's cargo units]
|r1= [[Object]] - the person sitting in the gunner place is returned. If vehicle is not a vehicle but a person, the person is returned.
</dd>


<!-- Note Section END -->
|x1= <sqf>gunner _tank action ["getout", _tank];</sqf>
</dl>


<h3 style="display:none">Bottom Section</h3>
|seealso= [[commander]] [[driver]] [[crew]] [[currentPilot]]
[[Category:Scripting Commands|GUNNER]]
}}
[[Category:Scripting Commands OFP 1.96|GUNNER]]
[[Category:Scripting Commands OFP 1.46|GUNNER]]
[[Category:Scripting Commands ArmA|GUNNER]]
[[Category:Command_Group:_Object_Information|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Vehicle_Assignment|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]

Latest revision as of 15:45, 8 November 2023

Hover & click on the images for description

Description

Description:
Returns the gunner of a vehicle.
Groups:
Object Manipulation

Syntax

Syntax:
gunner vehicle
Parameters:
vehicle: Object
Return Value:
Object - the person sitting in the gunner place is returned. If vehicle is not a vehicle but a person, the person is returned.

Examples

Example 1:
gunner _tank action ["getout", _tank];

Additional Information

See also:
commander driver crew currentPilot

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