canFire

From Bohemia Interactive Community

Jump to: navigation, search
Editors, please check Policy: Scripting Command Page Syntax.
Introduced in Operation Flashpoint version 1.00Arguments of this scripting command don't have to be local to the client the command is executed on

Click on the images for descriptions

Introduced in

Game:
Operation Flashpoint
Version:
1.00

Description

Description:
Returns if the given vehicle is still able to fire. This command checks only the damage value, not the ammo!

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

Multiplayer:
Behaviour unknown.
See also:
canMove, canStand

Notes

Notes

+ Add Note

Only post proven facts here. Use the talk page or the forums for discussions.

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

Personal tools
Buy ArmA now!