moveToCompleted: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \| *s([0-9]) *= ([^ ]+)? ?'''([a-zA-Z0-9_]+)''' ?([^ ]+)? " to " |s$1= $2 $3 $4 ") |
Killzone Kid (talk | contribs) No edit summary |
||
(10 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
|game1= | |game1= ofpe | ||
|version1= 1.00 | |version1= 1.00 | ||
|game2= arma1 | |||
|version2= 1.00 | |||
|game3= arma2 | |||
|version3= 1.00 | |||
|game4= arma2oa | |||
|version4= 1.50 | |||
|game5= tkoh | |||
|version5= 1.00 | |||
|game6= arma3 | |||
|version6= 0.50 | |||
|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= | |s1= [[moveToCompleted]] person | ||
|p1= person: [[Object]] | |p1= person: [[Object]] | ||
Line 14: | Line 29: | ||
|r1= [[Boolean]] | |r1= [[Boolean]] | ||
|x1= < | |x1= <sqf>_isCompleted = moveToCompleted _unit;</sqf> | ||
|seealso= [[moveTo]] | |seealso= [[moveTo]] [[moveToFailed]] | ||
}} | }} | ||
{{ | {{Note | ||
|user= DreadedEntity | |||
|timestamp= 20220402203147 | |||
{ | |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 13:27, 19 October 2024
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:
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
- 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:
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint: Elite version 1.00
- Operation Flashpoint: Elite: New Scripting Commands
- Operation Flashpoint: Elite: Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: Unit Control