canMove: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| ofp |Game name=
| ofp


|1.00|Game version=
|1.00


|arg= global |Multiplayer Arguments=
|arg= global


|gr1= Object Manipulation |GROUP1=
|gr1= Object Manipulation


| Returns if the given vehicle is still able to move.
| Returns if the given vehicle is still able to move.
Line 13: Line 13:
* This command does not check for the amount of fuel the vehicle has, except for helicopters and airplanes.
* This command does not check for the amount of fuel the vehicle has, except for helicopters and airplanes.
* A helicopter with a damaged tail rotor may return that it cannot move, where a skilled pilot could use it.
* A helicopter with a damaged tail rotor may return that it cannot move, where a skilled pilot could use it.
}} |DESCRIPTION=
}}


| [[canMove]] unitName |SYNTAX=
| [[canMove]] unitName


|p1= unitName: [[Object]] |PARAMETER1=
|p1= unitName: [[Object]]


| [[Boolean]] - [[true]] if the vehicle is able to move, [[false]] if not |RETURNVALUE=
| [[Boolean]] - [[true]] if the vehicle is able to move, [[false]] if not


|x1= <code>[[if]] ([[not]] [[canMove]] _tank) [[then]]
|x1= <code>[[if]] ([[not]] [[canMove]] _tank) [[then]]
{
{
[[player]] [[sideChat]] "He's nailed on the ground! Now hurry!";
[[player]] [[sideChat]] "He's nailed on the ground! Now hurry!";
};</code> |EXAMPLE1=
};</code>


| [[canFire]], [[canStand]] |SEEALSO=
| [[canFire]], [[canStand]]
}}
}}



Revision as of 01:12, 18 January 2021

Hover & click on the images for description

Description

Description:
Returns if the given vehicle is still able to move.
  • This command does not check for the amount of fuel the vehicle has, except for helicopters and airplanes.
  • A helicopter with a damaged tail rotor may return that it cannot move, where a skilled pilot could use it.
Groups:
Object Manipulation

Syntax

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

Examples

Example 1:
if (not canMove _tank) then { 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

Bottom Section