canMove: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "Category:Scripting Commands ArmA2" to "Category:Scripting Commands Arma 2") |
Lou Montana (talk | contribs) m (Fix description, example and clean comments) |
||
Line 9: | Line 9: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Returns if the given vehicle is still able to move. This command | | Returns if the given vehicle is still able to move. | ||
{{Informative | | |||
* 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. | |||
}} |DESCRIPTION= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[ | | [[canMove]] unitName |SYNTAX= | ||
|p1= unitName: [[Object]] |PARAMETER1= | |p1= unitName: [[Object]] |PARAMETER1= | ||
| [[Boolean]] - | | [[Boolean]] - [[true]] if the vehicle is able to move, [[false]] if not |RETURNVALUE= | ||
true if the vehicle is | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= | |x1= <code>[[if]] ([[not]] [[canMove]] _tank) [[then]] | ||
{ | { | ||
[[player]] [[sideChat]] "He's nailed on the ground! Now hurry!"; | |||
};</code> | | };</code> |EXAMPLE1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[canFire]], [[canStand]] |SEEALSO= | | [[canFire]], [[canStand]] |SEEALSO= | ||
}} | }} | ||
Line 35: | Line 35: | ||
<dl class="command_description"> | <dl class="command_description"> | ||
<!-- Note Section BEGIN --> | <!-- Note Section BEGIN --> | ||
<!-- Note Section END --> | <!-- Note Section END --> | ||
</dl> | </dl> | ||
Line 44: | Line 41: | ||
<h3 style="display:none">Bottom Section</h3> | <h3 style="display:none">Bottom Section</h3> | ||
[[Category:Scripting Commands| | [[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands OFP 1. | [[Category:Scripting Commands OFP 1.46|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands OFP 1.96| | [[Category:Scripting Commands OFP 1.96|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands OFP 1. | [[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands ArmA | [[Category:Scripting Commands ArmA|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | ||
[[Category: | [[Category:Scripting_Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Command_Group: Object Information|{{uc:{{PAGENAME}}}}]] |
Revision as of 23:38, 5 April 2020
Description
- Description:
- Returns if the given vehicle is still able to move.
- Groups:
- Uncategorised
Syntax
- Syntax:
- canMove unitName
- Parameters:
- unitName: Object
- Return Value:
- Boolean - true if the vehicle is able to move, false if not
Examples
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
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.46
- Scripting Commands OFP 1.96
- Scripting Commands OFP 1.99
- Scripting Commands ArmA
- Scripting Commands Arma 2
- Scripting Commands Arma 3
- Scripting Commands Take On Helicopters
- Command Group: Object Information