currentMuzzle: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma2oa | | arma2oa | ||
|1.51 | |1.51 | ||
|gr1= Weapons | |gr1= Weapons | ||
| Returns current muzzle of unit's weapon. | | Returns current muzzle of unit's weapon. | ||
{{Warning|This command will return 0 [[Number]] if given object is a unit that is in a vehicle.<br> | {{Warning|This command will return 0 [[Number]] if given object is a unit that is in a vehicle.<br> | ||
You can alternatively use <code>_muzzle {{=}} [[weaponState]] [[player]] select 1;</code>}} | You can alternatively use <code>_muzzle {{=}} [[weaponState]] [[player]] select 1;</code>}} | ||
| '''currentMuzzle''' gunner | | '''currentMuzzle''' gunner | ||
|p1= gunner: [[Object]] | |p1= gunner: [[Object]] | ||
| [[String]] - current muzzle | | [[String]] - current muzzle | ||
|x1= <code>_muzzle = [[currentMuzzle]] [[player]];</code> | |x1= <code>_muzzle = [[currentMuzzle]] [[player]];</code> | ||
|x2= <code>_muzzle = [[currentMuzzle]] ([[gunner]] ([[vehicle]] [[player]]));</code> | |x2= <code>_muzzle = [[currentMuzzle]] ([[gunner]] ([[vehicle]] [[player]]));</code> | ||
| [[currentWeapon]] | | [[currentWeapon]] | ||
}} | }} | ||
Revision as of 00:30, 18 January 2021
Description
- Description:
- Returns current muzzle of unit's weapon.
- Groups:
- Weapons
Syntax
Examples
- Example 1:
_muzzle = currentMuzzle player;
- Example 2:
_muzzle = currentMuzzle (gunner (vehicle player));
Additional Information
- See also:
- currentWeapon
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