stop: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Some wiki formatting)
 
(71 intermediate revisions by 15 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands]]
{{RV|type=command
[[Category:Scripting Commands OFP 1.97]]
[[Category:Scripting Commands OFP 1.46]]
[[Category:Scripting Commands ArmA]]


back to [[Scripting_Reference#S|COMREF]]
|game1= ofp
|version1= 1.00


<h2 style="color:#000066">'''''unit'' stop ''stop'''''</h2>
|game2= ofpe
|version2= 1.00


|game3= arma1
|version3= 1.00


'''Operand types:'''
|game4= arma2
|version4= 1.00


'''unit:''' [[Object]]
|game5= arma2oa
|version5= 1.50


'''stop:''' [[Boolean]]
|game6= tkoh
|version6= 1.00


'''Type of returned value:'''
|game7= arma3
|version7= 0.50


[[Nothing]]
|arg= local


'''Description:'''
|eff= global


Stop AI unit.
|gr1= Unit Control


<span style="color:red">This function is obsolete.
|descr= Stop an AI unit from turning or moving, preventing it to follow a watched object or engage an enemy properly - although if properly aligned, the unit -will- shoot the enemy.
</span>
It may still change the stance if deemed appropriate (e.g. under fire). Use [[disableAI]] to disable specific AI capabilities.


Use [[disableAI]] to get better control of stopping unit.
|s1= unitName [[stop]] toggle


|p1= unitName: [[Object]]


'''Example:'''
|p2= toggle: [[Boolean]]


loon1 '''stop''' [[true]]
|r1= [[Nothing]]
 
|x1= <sqf>loon1 stop true;</sqf>
 
|seealso= [[stopped]] [[doStop]] [[commandStop]]
}}

Latest revision as of 21:40, 24 January 2023

Hover & click on the images for description

Description

Description:
Stop an AI unit from turning or moving, preventing it to follow a watched object or engage an enemy properly - although if properly aligned, the unit -will- shoot the enemy. It may still change the stance if deemed appropriate (e.g. under fire). Use disableAI to disable specific AI capabilities.
Groups:
Unit Control

Syntax

Syntax:
unitName stop toggle
Parameters:
unitName: Object
toggle: Boolean
Return Value:
Nothing

Examples

Example 1:
loon1 stop true;

Additional Information

See also:
stopped doStop commandStop

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