gunner: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:Scripting Commands OFP 1.[4-9]{2}(\|(\{\{uc:\{\{PAGENAME\}\}\}\}|#|[A-Z]+))?\]\] " to "")
m (formatting)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| ofp
|game1= ofp


|1.00
|version1= 1.00


|arg= global
|game2= ofpe
 
|version2= 1.00
 
|game3= arma1
 
|version3= 1.00
 
|game4= arma2
 
|version4= 1.00


|gr1= Object Manipulation
|game5= arma2oa


| Returns the gunner of a vehicle.
|version5= 1.51


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


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


|seealso= [[commander]], [[driver]], [[crew]], [[currentPilot]]
|version7= 0.50
}}


<dl class="command_description">
|arg= global
<!-- Note Section BEGIN -->


<dd class="notedate">Posted on 2 January, 2007 - 13:10</dd>
|gr1= Object Manipulation
<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]
|descr= Returns the gunner of a vehicle.


|s1= '''gunner''' vehicle


<!-- Note Section END -->
|p1= vehicle: [[Object]]
</dl>


|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= <code>[[gunner]] _tank [[action]] ["getout", _tank];</code>


{{GameCategory|arma1|Scripting Commands}}
|seealso= [[commander]], [[driver]], [[crew]], [[currentPilot]]
{{GameCategory|arma2|Scripting Commands}}
}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}

Revision as of 14:46, 31 March 2021

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:
commanderdrivercrewcurrentPilot

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