canFire: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (changed global to local variable to make clear the variable)
No edit summary
Line 31: Line 31:
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->
true even if unit is out of ammo. Only false if gun is damaged.  
true even if unit is out of ammo. Only false if gun is damaged.  
<!-- Note Section END -->
<!-- Note Section END --><br>
</dl>
<!-- Note Section BEGIN -->
False if there is no gunner in the vehicle, regardless of damage level. --[[User:Canukausiuka|Canukausiuka]] 05:20, 24 August 2008 (CEST)
<!-- Note Section END --></dl>


<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>

Revision as of 04:20, 24 August 2008

Hover & click on the images for description

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 #Unit|Unit
Parameters:
#Unit|Unit: 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

See also:
canMovecanStand

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)

Bottom Section