enableAI: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3> " to "") |
Killzone Kid (talk | contribs) No edit summary |
||
(31 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
| | |game1= ofpe | ||
|version1= 1.00 | |||
|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 | |||
|arg= local | |arg= local | ||
Line 9: | Line 23: | ||
|eff= global | |eff= global | ||
|gr1= | |gr1= AI Behaviour | ||
| Enables parts of the AI behavior that was disabled by [[disableAI]]. | |descr= Enables parts of the AI behavior that was disabled by [[disableAI]]. | ||
{{Feature|important|When player switches and leaves behind AI unit, you need to enable "TeamSwitch" AI on it <sqf inline>_unit enableAI "TeamSwitch";</sqf> so that the unit continues with [[waypoints]].}} | |||
{{ | {{Feature|arma3|Since Arma 3 v1.96 it is possible to return the state of the given AI flag via [[checkAIFeature]] or set it using alias command [[enableAIFeature]].}} | ||
{{Feature|arma3 | Since Arma 3 v1. | |||
| unit | |s1= unit [[enableAI]] skilltype | ||
|p1= unit: [[Object]] | |p1= unit: [[Object]] | ||
|p2= skilltype: [[String]] - | |p2= skilltype: [[String]] - see [[disableAI]] for possible values. | ||
| [[Nothing]] | |r1= [[Nothing]] | ||
| | |x1= <sqf>_soldierOne enableAI "Move";</sqf> | ||
|seealso= [[disableAI]] [[checkAIFeature]] [[enableAIFeature]] [[vehicleMoveInfo]] [[getUnitState]] | |||
}} | }} | ||
Latest revision as of 13:39, 22 October 2024
Description
- Description:
- Enables parts of the AI behavior that was disabled by disableAI.
- Groups:
- AI Behaviour
Syntax
- Syntax:
- unit enableAI skilltype
- Parameters:
- unit: Object
- skilltype: String - see disableAI for possible values.
- Return Value:
- Nothing
Examples
- Example 1:
- _soldierOne enableAI "Move";
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
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: AI Behaviour
- Scripting Commands: Global Effect