Arma 3 Eden Editor | Make AI join group and follow
Want to make an AI join your group and follow you? This how it's done.
AI:
In the Variable Name, give the AI a name. I have used the variable name of Hostage in this example. You can use whatever name you like.
In the Init field, place the following:
this disableAI "move"; this setcaptive true;
This will prevent the AI from moving, and it will make him a hostage that needs to be rescued.
Next place a trigger, and in trigger activation select
- Type = None
- Activation = BLUFOR
- Activation Type = Present
In the trigger condition field type the following:
player distance hostage (put a less than symbol here)2;
In On activation field type the following:
[hostage] join player; hostage enableAI "MOVE"; hostage setCaptive false;
Now when ANY player approaches, the AI will join the players group. Keep in mind that after joining your unit, the AI player may switch to another unit if any other players are within 2 metres of him.
Thanks to Just a Gamer for the question.
If you like my tutorials, PLEASE LIKE, SHARE AND GIVE ME A SUB!
Thanks so much for watching!
Thank you to Bohemia Interactive Studios for the greatest Military Simulation game ever made.
Missions and videos take time to make, please help me out by becoming a patron: https://www.patreon.com/ocb_au
Or you could make a one-off donation of a few bucks and buy me a coffee!
https://paypal.me/ocbau