selectWeapon: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (note about muzzles for multi-muzzle weapons)
Line 33: Line 33:
<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->
<dd class="notedate"></dd>
<dt class="note">'''[[User:Ceeeb|Ceeeb]]'''</dt>
<dd class="note">This command uses a muzzle name rather than a weapon name, when selecting a weapon with more than one muzzle.</dd>


<!-- Note Section END -->
<!-- Note Section END -->

Revision as of 05:15, 22 May 2007

Hover & click on the images for description

Description

Description:
Selects the given weapon. For weapon names see cfgWeapons.
Groups:
Uncategorised

Syntax

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

Examples

Example 1:
soldier1 selectWeapon "LAWLauncher"
Example 2:
player selectWeapon "M203Muzzle"

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

Ceeeb
This command uses a muzzle name rather than a weapon name, when selecting a weapon with more than one muzzle.

Bottom Section