useAISteeringComponent: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Fix seeAlso)
m (2.16 -> 2.18)
 
(26 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma3 |Game name=
|game1= arma3
|version1= 1.60


|1.60|Game version=
|eff= global


|eff= global|Multiplayer Effects=
|arg= local
____________________________________________________________________________________________


| Enable the new [https://forums.bistudio.com/topic/191515-ai-driving-feedback-topic/ AI driving], used to test the old and new AI driving. |DESCRIPTION=
|gr1= AI Behaviour
____________________________________________________________________________________________


| [[useAISteeringComponent]] state |SYNTAX=
|descr= Enable the new {{Link|link= https://forums.bistudio.com/topic/191515-ai-driving-feedback-topic/|text= AI driving}}, used to test the old and new AI driving.
{{Feature|important|[[setDriveOnPath]] does not work if the vehicle doesn't have an AI steering component or if it's disabled.}}
|s1= [[useAISteeringComponent]] enabled


|p1= state: [[Bool]]|PARAMETER1=
|p1= enabled: [[Boolean]]


| [[Nothing]] |RETURNVALUE=
|r1= [[Nothing]]
____________________________________________________________________________________________
 
|s2= vehicle [[useAISteeringComponent]] enabled
|x1= <code>[[useAISteeringComponent]] [[true]];</code> |EXAMPLE1=
|s2since= arma3 2.18
____________________________________________________________________________________________
|p21=vehicle: [[Object]] - the vehicle to enable/disable the feature for
 
|p22=enabled: [[Boolean]]
|[[sendSimpleCommand]], [[enableAI]], [[disableAI]], [[enableAIFeature]], [[vehicleMoveInfo]] |SEEALSO=
|r2=
|x1= <sqf>useAISteeringComponent true;</sqf>
|x2= <sqf>myTank useAISteeringComponent false;</sqf>
|seealso= [[isUsingAISteeringComponent]] [[isAISteeringComponentEnabled]] [[sendSimpleCommand]] [[enableAI]] [[disableAI]] [[enableAIFeature]] [[vehicleMoveInfo]]
}}
}}
<dl class="command_description">
<!-- BEGIN Note Section -->
<!-- END Note Section -->
</dl>
<h3 style="display:none">Bottom Section</h3>

Latest revision as of 15:10, 8 February 2024

Hover & click on the images for description

Description

Description:
Enable the new AI driving, used to test the old and new AI driving.
setDriveOnPath does not work if the vehicle doesn't have an AI steering component or if it's disabled.
Groups:
AI Behaviour

Syntax

Syntax:
useAISteeringComponent enabled
Parameters:
enabled: Boolean
Return Value:
Nothing

Alternative Syntax

Syntax:
vehicle useAISteeringComponent enabled
Parameters:
vehicle: Object - the vehicle to enable/disable the feature for
enabled: Boolean
Return Value:
Nothing

Examples

Example 1:
useAISteeringComponent true;
Example 2:
myTank useAISteeringComponent false;

Additional Information

See also:
isUsingAISteeringComponent isAISteeringComponentEnabled sendSimpleCommand enableAI disableAI enableAIFeature vehicleMoveInfo

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