canFire: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 30: Line 30:
<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->
 
true even if unit is out of ammo. Only false if gun is damaged.
<!-- Note Section END -->
<!-- Note Section END -->
</dl>
</dl>

Revision as of 13:16, 20 January 2007

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:
canFire vehicle
Parameters:
vehicle: 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.

Bottom Section