canMove: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
[[Category:Scripting Commands|CANMOVE]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|CANMOVE]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|CANMOVE]]
[[Category:Scripting Commands ArmA|CANMOVE]]


| ofp |= Game name


<h2 style="color:#000066"> '''canMove ''vehicle'''''</h2>
|1.00|= Game version


|arg= global |= Arguments in MP
____________________________________________________________________________________________


'''Operand types:'''
| Returns if the given vehicle is still able to move. This command checks only the damage value, not the amount of fuel! |= Description
____________________________________________________________________________________________


'''vehicle:''' [[Object]]
| '''canMove''' vehicle |= Syntax


'''Type of returned value:'''
|p1= vehicle: [[Object]] |= Parameter 1


[[Boolean]]
| [[Boolean]]
true if the vehicle is still able to move, false if not |= Return value
____________________________________________________________________________________________
 
|x1= <pre>?!(canMove tank) : player sideChat "He's nailed on the ground! Now hurry!"</pre> |= Example 1
____________________________________________________________________________________________


'''Description:'''
| [[canFire]], [[canStand]] |= See also


Check if given '''vehicle''' is able to move.
}}


Does not test for fuel, only damage status is checked.
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
</dl>


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


? '''canMove''' ([[vehicle]] [[player]]) : [[goto]] "nexttarget"
[[Category:Scripting Commands|CANMOVE]]
[[Category:Scripting Commands OFP 1.96|CANMOVE]]
[[Category:Scripting Commands OFP 1.46|CANMOVE]]
[[Category:Scripting Commands ArmA|CANMOVE]]

Revision as of 22:38, 1 August 2006

Hover & click on the images for description

Description

Description:
Returns if the given vehicle is still able to move. This command checks only the damage value, not the amount of fuel!
Groups:
Uncategorised

Syntax

Syntax:
canMove vehicle
Parameters:
vehicle: Object
Return Value:
Boolean - true if the vehicle is still able to move, false if not

Examples

Example 1:
?!(canMove tank) : player sideChat "He's nailed on the ground! Now hurry!"

Additional Information

See also:
canFirecanStand

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

Bottom Section