hasWeapon: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <dl class="command_description"> <dt><dt>" to " <dl class="command_description"> <dt><dt>") |
Lou Montana (talk | contribs) m (Text replacement - " \| ofp \|1.00 +\|([^g])" to " | ofp |1.00 |game2= ofpe |version2= 1.00 |game3= arma1 |version3= 1.00 |game4= arma2 |version4= 1.00 |game5= arma2oa |version5= 1.50 |game6= tkoh |version6= 1.00 |game7= arma3 |version7= 0.50 |$1") |
||
Line 2: | Line 2: | ||
| ofp | | ofp | ||
|1.00 | |||
|game2= ofpe | |||
|version2= 1.00 | |||
|game3= arma1 | |||
|version3= 1.00 | |||
|1.00 | |game4= arma2 | ||
|version4= 1.00 | |||
|game5= arma2oa | |||
|version5= 1.50 | |||
|game6= tkoh | |||
|version6= 1.00 | |||
|game7= arma3 | |||
|version7= 0.50 | |||
|arg= global | |arg= global |
Revision as of 21:06, 12 June 2021
Description
- Description:
- Description needed
- Groups:
- WeaponsUnit Inventory
Syntax
- Syntax:
- Syntax needed
- Parameters:
- unitName: Object
- weaponName: String - the name of the weapon to check for.
- Return Value:
- Return value needed
Examples
- Example 1:
if !(player hasWeapon "arifle_MX_ACO_pointer_F") then { player addWeapon "arifle_MX_ACO_pointer_F" };
Additional Information
- See also:
- weapons
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