selectWeapon: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
[[Category:Scripting Commands|SELECTWEAPON]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|SELECTWEAPON]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|SELECTWEAPON]]
[[Category:Scripting Commands ArmA|SELECTWEAPON]]


| ofp |= Game name


<h2 style="color:#000066">'''''unit'' selectWeapon ''weapon'''''</h2>
|1.27|= Game version
____________________________________________________________________________________________


| Select given weapon. For weapon values see [[cfgWeapons]]. |= Description
____________________________________________________________________________________________


'''Operand types:'''
| unit '''selectWeapon''' weapon |= Syntax


'''unit:''' [[Object]]
|p1= unit: [[Object]] |= Parameter 1


'''weapon:''' [[String]]
|p2= weapon: [[String]] |= Parameter 2


'''Type of returned value:'''
| [[Nothing]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>soldier1 selectWeapon "LAWLauncher"</pre> |= Example 1
____________________________________________________________________________________________


[[Nothing]]
|  |= See also


'''Compatibility:'''
}}


Added in version '''1.27'''
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


'''Description:'''
<!-- Note Section END -->
</dl>


Select given '''weapon'''.
<h3 style="display:none">Bottom Section</h3>
 
[[Category:Scripting Commands|SELECTWEAPON]]
For weapon values see [[:Category: Weapons|cfgWeapons]].
[[Category:Scripting Commands OFP 1.96|SELECTWEAPON]]
 
[[Category:Scripting Commands OFP 1.46|SELECTWEAPON]]
 
[[Category:Scripting Commands ArmA|SELECTWEAPON]]
'''Example:'''
 
soldier1 '''selectWeapon''' "LAWLauncher"

Revision as of 23:02, 1 August 2006

Hover & click on the images for description

Description

Description:
Select given weapon. For weapon values see cfgWeapons.
Groups:
Uncategorised

Syntax

Syntax:
unit selectWeapon weapon
Parameters:
unit: Object
weapon: String
Return Value:
Nothing

Examples

Example 1:
soldier1 selectWeapon "LAWLauncher"

Additional Information

See also:
See also needed

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

Notes

Bottom Section