moveToCompleted: 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 - "\{\{Note([^<]*)<code>([^<]*)<\/code>" to "{{Note$1<sqf>$2</sqf>")
 
(16 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|MOVETOCOMPLETED]]
{{RV|type=command
{{GameCategory|ofpe|Scripting Commands}}
{{GameCategory|arma1|Scripting Commands}}


{{Command|Comments=
|game1= ofpe
|version1= 1.00


| arma1 |Game name=
|game2= arma1
|version2= 1.00


|1.00|Game version=
|game3= arma2
|version3= 1.00


|gr1= Unit Control |GROUP1=
|game4= arma2oa
|version4= 1.50


| Check if latest low level moveTo command is finished. |DESCRIPTION=
|game5= tkoh
|version5= 1.00


|'''moveToCompleted''' person |SYNTAX=
|game6= arma3
|version6= 0.50


|p1= person: [[Object]] |PARAMETER1=
|gr1= Unit Control


| [[Boolean]] |RETURNVALUE=
|descr= Check if latest low level moveTo command is finished.


|x1= <code>_isCompleted = [[moveToCompleted]] _unit;</code> |EXAMPLE1=
|s1= [[moveToCompleted]] person


| [[moveTo]], [[moveToFailed]] |SEEALSO=
|p1= person: [[Object]]


|r1= [[Boolean]]
|x1= <sqf>_isCompleted = moveToCompleted _unit;</sqf>
|seealso= [[moveTo]] [[moveToFailed]]
}}
}}


<h3 style="display:none">Bottom Section</h3>
{{Note
{{GameCategory|arma2|Scripting Commands}}
|user= DreadedEntity
{{GameCategory|arma3|Scripting Commands}}
|timestamp= 20220402203147
{{GameCategory|tkoh|Scripting Commands}}
|text= This command can also check the status of [[doMove]] and [[commandMove]] (A3 2.08.149102)
This is handy to make your script wait until a unit has moved to some position:
<sqf>waitUntil {moveToCompleted _unit};</sqf>
}}

Latest revision as of 11:39, 13 May 2022

Hover & click on the images for description

Description

Description:
Check if latest low level moveTo command is finished.
Groups:
Unit Control

Syntax

Syntax:
moveToCompleted person
Parameters:
person: Object
Return Value:
Boolean

Examples

Example 1:
_isCompleted = moveToCompleted _unit;

Additional Information

See also:
moveTo moveToFailed

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
DreadedEntity - c
Posted on Apr 02, 2022 - 20:31 (UTC)
This command can also check the status of doMove and commandMove (A3 2.08.149102) This is handy to make your script wait until a unit has moved to some position:
waitUntil {moveToCompleted _unit};