gunner: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[[cC]ategory:[sS]cripting [cC]ommands\|[a-z A-Z 0-9_]+\]\]" to "")
m (Text replacement - "(\|[pr][0-9]+ *= *[^-\r\n]+) *- *T([a-z])" to "$1 - t$2")
 
(15 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| ofp
|game1= ofp
|version1= 1.00


|1.00
|game2= ofpe
|version2= 1.00


|arg= global
|game3= arma1
|version3= 1.00


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


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


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


|p1= vehicle: [[Object]]
|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.
 
|x1= <pre>(gunner _tank1) action ["getout",_tank1]</pre>


| [[commander]], [[driver]], [[crew]], [[currentPilot]]
|gr1= Object Manipulation
}}


<dl class="command_description">
|descr= Returns the gunner of a vehicle.
<!-- Note Section BEGIN -->


<dd class="notedate">Posted on 2 January, 2007 - 13:10</dd>
|s1= [[gunner]] vehicle
<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]
|p1= vehicle: [[Object]]


|r1= [[Object]] - the person sitting in the gunner place is returned. If vehicle is not a vehicle but a person, the person is returned.


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


 
|seealso= [[commander]] [[driver]] [[crew]] [[currentPilot]]
[[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}}
{{GameCategory|tkoh|Scripting Commands}}

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