primaryWeapon: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 1: Line 1:
[[Category:Scripting Commands|P]]
[[Category:Scripting Commands|PRIMARYWEAPON]]
[[Category:Scripting Commands OFP 1.97|P]]
[[Category:Scripting Commands OFP 1.97|PRIMARYWEAPON]]
[[Category:Scripting Commands ArmA|P]]
[[Category:Scripting Commands ArmA|PRIMARYWEAPON]]





Revision as of 15:56, 4 May 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