canFire: Difference between revisions
Jump to navigation
Jump to search
m (Text replace - "{{uc:{{PAGENAME}}}}" to "{{uc:{{PAGENAME}}}} {{uc:{{PAGENAME}}}}") |
mNo edit summary |
||
Line 39: | Line 39: | ||
[[Category:Scripting Commands|CANFIRE]] | [[Category:Scripting Commands|CANFIRE]] | ||
[[Category:Scripting Commands OFP 1.99|CANFIRE]] | |||
[[Category:Scripting Commands OFP 1.96|CANFIRE]] | [[Category:Scripting Commands OFP 1.96|CANFIRE]] | ||
[[Category:Scripting Commands OFP 1.46|CANFIRE]] | [[Category:Scripting Commands OFP 1.46|CANFIRE]] |
Revision as of 09:19, 25 September 2014
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)
Bottom Section
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.00
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands OFP 1.99
- Scripting Commands OFP 1.96
- Scripting Commands OFP 1.46
- Scripting Commands ArmA
- Command Group: Object Information
- Scripting Commands ArmA2
- Scripting Commands Arma 3
- Scripting Commands Take On Helicopters