useAISteeringComponent: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(argument locality for alt syntax)
m (2.16 -> 2.18)
 
(2 intermediate revisions by one other user not shown)
Line 11: Line 11:


|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.
|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.}}
{{Feature|important|[[setDriveOnPath]] does not work if the vehicle doesn't have an AI steering component or if it's disabled.}}
|s1= [[useAISteeringComponent]] enabled
|s1= [[useAISteeringComponent]] enabled


Line 19: Line 19:
   
   
|s2= vehicle [[useAISteeringComponent]] enabled
|s2= vehicle [[useAISteeringComponent]] enabled
|s2since= arma3 2.16
|s2since= arma3 2.18
|p21=vehicle: [[Object]] - The vehicle to enable/disable the feature for
|p21=vehicle: [[Object]] - the vehicle to enable/disable the feature for
|p22=enabled: [[Boolean]]
|p22=enabled: [[Boolean]]
|r2=
|r2=

Latest revision as of 16: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