canFire: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{Command|= Comments | |||
____________________________________________________________________________________________ | |||
| ofp |= Game name | |||
|1.00|= Game version | |||
|arg= global |= Arguments in MP | |||
____________________________________________________________________________________________ | |||
| Returns if the given vehicle is still able to fire. This command checks only the damage value, not the ammo! |= Description | |||
____________________________________________________________________________________________ | |||
''' | | '''canFire''' vehicle |= Syntax | ||
|p1= vehicle: [[Object]] |= Parameter 1 | |||
[[Boolean]] | | [[Boolean]] - | ||
true if it's still able to fire, false if not |= Return value | |||
____________________________________________________________________________________________ | |||
|x1= <pre>?!(canFire tank) : player sideChat "Tank disabled!"</pre> |= Example 1 | |||
____________________________________________________________________________________________ | |||
| [[canMove]], [[canStand]] |= See also | |||
}} | |||
<h3 style="display:none">Notes</h3> | |||
<dl class="command_description"> | |||
<!-- Note Section BEGIN --> | |||
<!-- Note Section END --> | |||
</dl> | |||
<h3 style="display:none">Bottom Section</h3> | |||
[[Category:Scripting Commands|CANFIRE]] | |||
[[Category:Scripting Commands OFP 1.96|CANFIRE]] | |||
[[Category:Scripting Commands OFP 1.46|CANFIRE]] | |||
[[Category:Scripting Commands ArmA|CANFIRE]] |
Revision as of 22:37, 1 August 2006
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
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