primaryWeapon: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 3: Line 3:
[[Category:Scripting Commands ArmA|P]]
[[Category:Scripting Commands ArmA|P]]


back to [[Scripting_Reference#P|COMREF]]


<h2 style="color:#000066">'''primaryWeapon ''vehicle'''''</h2>
<h2 style="color:#000066">'''primaryWeapon ''vehicle'''''</h2>

Revision as of 11:10, 23 April 2006


primaryWeapon vehicle


Operand types:

vehicle: Object

Type of returned value:

String

Compatibility:

Added in version 1.75

Description:

Returns name of vehicle's primary weapon (empty string if none).


Example:

pWeap = primaryWeapon player