selectWeapon: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (removed my note. I assume the command description will stay this time!!!!)
mNo edit summary
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Selects the given weapon. Note that you have to input the muzzle and not the weapon name (in most cases both names are the same).
| Selects the given weapon. Note that you have to input the <u>muzzle</u> and '''not''' the weapon name. Fortunately in most cases both names are the same. But check.


For muzzle names see [[:Category:Weapons|cfgWeapons]]. |= Description
For muzzle names see [[:Category:Weapons|cfgWeapons]]. |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| unit '''selectWeapon''' muzzle |= Syntax
| [[Object#Unit|Unit]] '''selectWeapon''' "muzzleName" |= Syntax


|p1= unit: [[Object]] |= Parameter 1
|p1= muzzle: [[String]]  
 
|p2= muzzle: [[String]] |= Parameter 2


| [[Nothing]] |= Return value
| [[Nothing]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <pre>soldier1 selectWeapon "LAWLauncher"</pre> |= Example 1
|x1= <pre>_soldier1 selectWeapon "LAWLauncher"</pre> |= Example 1
|x2= <pre>player selectWeapon "M203Muzzle"</pre> |= Example 1
|x2= <pre>player selectWeapon "M203Muzzle"</pre> |= Example 2


____________________________________________________________________________________________
____________________________________________________________________________________________

Revision as of 03:47, 30 August 2007

Hover & click on the images for description

Description

Description:
Selects the given weapon. Note that you have to input the muzzle and not the weapon name. Fortunately in most cases both names are the same. But check. For muzzle names see cfgWeapons.
Groups:
Uncategorised

Syntax

Syntax:
Unit selectWeapon "muzzleName"
Parameters:
muzzle: 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

Bottom Section