canFire: Difference between revisions
Jump to navigation
Jump to search
Canukausiuka (talk | contribs) No edit summary |
No edit summary |
||
Line 12: | Line 12: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| _[[Boolean]] <nowiki>=</nowiki> '''canFire''' | | _[[Boolean]] <nowiki>=</nowiki> '''canFire''' unitName|= Syntax | ||
|p1= | |p1= unitName: [[Object]] |= Parameter 1 | ||
| [[Boolean]] - | | [[Boolean]] - |
Revision as of 16:00, 21 January 2009
Description
- Description:
- Returns if the given vehicle is still able to fire. This command checks only the damage value, not the ammo!
- Groups:
- Uncategorised
Syntax
- Syntax:
- _Boolean = canFire unitName
- Parameters:
- unitName: Object
- Return Value:
- Boolean - true if it's still able to fire, false if not
Examples
- Example 1:
?!(canFire _tank) : player sideChat "Tank disabled!"
Additional Information
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
-
true even if unit is out of ammo. Only false if gun is damaged.
False if there is no gunner in the vehicle, regardless of damage level. --Canukausiuka 05:20, 24 August 2008 (CEST)