primaryWeapon: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
back to [[Scripting_Reference#P|COMREF]]
<h2 style="color:#000066">'''primaryWeapon ''vehicle'''''</h2>
<h2 style="color:#000066">'''primaryWeapon ''vehicle'''''</h2>


'''Operand types:'''
'''Operand types:'''


vehicle: [[Object]]
'''vehicle:''' [[Object]]


'''Type of returned value:'''
'''Type of returned value:'''
Line 12: Line 15:


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


'''Example:'''
'''Example:'''


pWeap = '''primaryWeapon''' player
pWeap = '''primaryWeapon''' [[player]]

Revision as of 02:22, 16 April 2006

back to COMREF

primaryWeapon vehicle


Operand types:

vehicle: Object

Type of returned value:

String

Description:

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


Example:

pWeap = primaryWeapon player