moveToCompleted: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(added : to my note)
No edit summary
 
(3 intermediate revisions by one other user not shown)
Line 21: Line 21:
|gr1= Unit Control
|gr1= Unit Control


|descr= Check if latest low level moveTo command is finished.
|descr= Check if latest low level moveTo command is finished. Returns true if given AI pilot unit state == COMPLETED


|s1= [[moveToCompleted]]  person
|s1= [[moveToCompleted]]  person
Line 29: Line 29:
|r1= [[Boolean]]
|r1= [[Boolean]]


|x1= <code>_isCompleted = [[moveToCompleted]] _unit;</code>
|x1= <sqf>_isCompleted = moveToCompleted _unit;</sqf>


|seealso= [[moveTo]] [[moveToFailed]]
|seealso= [[moveTo]] [[moveToFailed]]
Line 35: Line 35:


{{Note
{{Note
|user= dreadedentity
|user= DreadedEntity
|timestamp= 20220402203147
|timestamp= 20220402203147
|text= This command can also check the status of [[doMove]] and [[commandMove]] (A3 2.08.149102)
|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:
This is handy to make your script wait until a unit has moved to some position:
<code>waitUntil {moveToCompleted _unit};</code>
<sqf>waitUntil {moveToCompleted _unit};</sqf>
}}
}}

Latest revision as of 13:27, 19 October 2024

Hover & click on the images for description

Description

Description:
Check if latest low level moveTo command is finished. Returns true if given AI pilot unit state == COMPLETED
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};