gunner: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]2(\|.*)\]\]" to "{{GameCategory|arma2|Scripting Commands}}")
m (Text replacement - "(\|[pr][0-9]+ *= *[^-\r\n]+) *- *T([a-z])" to "$1 - t$2")
 
(24 intermediate revisions by 2 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 |Multiplayer Arguments=
|game3= arma1
|version3= 1.00


|gr1= Object Manipulation |GROUP1=
|game4= arma2
____________________________________________________________________________________________
|version4= 1.00


| Returns the gunner of a vehicle. |DESCRIPTION=
|game5= arma2oa
____________________________________________________________________________________________
|version5= 1.50


| [[Object]] <nowiki>=</nowiki> '''gunner''' vehicle |SYNTAX=
|game6= tkoh
|version6= 1.00


|p1= vehicle: [[Object]] |PARAMETER1=
|game7= arma3
|version7= 0.50


| [[Object]] - 
|arg= global
The person sitting in the gunner place is returned. If vehicle is not a vehicle but a person, the person is returned. |RETURNVALUE=
____________________________________________________________________________________________
 
|x1= <pre>(gunner _tank1) action ["getout",_tank1]</pre> |EXAMPLE1=
____________________________________________________________________________________________


| [[commander]], [[driver]], [[crew]], [[currentPilot]] |SEEALSO=
|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
|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.


|x1= <sqf>gunner _tank action ["getout", _tank];</sqf>


<!-- Note Section END -->
|seealso= [[commander]] [[driver]] [[crew]] [[currentPilot]]
</dl>
}}
 
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|GUNNER]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.96|GUNNER]]
[[Category:Scripting Commands OFP 1.46|GUNNER]]
{{GameCategory|arma1|Scripting Commands}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]

Latest revision as of 14: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