PLAY

How to Make AI Helicopters Move in User Missions

In this guide, you’ll learn how to make AI-controlled helicopters fly to a specific waypoint in your mission. Special thanks to Avarik for helping figure out this method. This guide will take into account that you are familiar with the CDK and will not be explaining basics.

AI-controlled Helicopter not crashing

Creating a Simple UserMission in the CDK

1) Once you have placed a Helicopter unit at your desired starting point, create a structure type "dummy_immortal" class object to where you want the helicopter to move towards. 

2) Now create a Trigger, have the Events element set as "periodicEvent" time as "0".

3) Create an Action "unitLoadBehTree", objects as the Helicopter unit, loadType set as "tree" and name as "missionHitThePoint".

4) Create another Action "unitMoveTo"object as the Helicopter, target as the Waypoint Object ("dummy_immortal"), set move_type to "move" and click the box for "horizontalDirectionForTeleport".

There you have it, now the AI controlled helicopter won't flip and dive into the ground anymore :D - Again special thanks to Avarik!

1 comment
No comments yet
Be the first to write one!
Recommendation feed
We have nothing to recommend you at the moment :(
Go to Main
No more content