Jump to content

Sign in to follow this  
InProgress

Adding new bots to your team

Recommended Posts

I am making a bit long mission and i have problem with AI, i want to send player on different missions during campaign but what if he lost everyone in his squad? I would like to make point in a base where you can "resupply" soldiers and they will join you.

 

The other thing i was thinking about is making squads that will go on their own and player can follow them but can i make trigger or something that will activate "MOVE" when player enters it but only when you finished other task before. So bots wont move somewhere when player just entered this trigger by accident while making different mission.

Share this post


Link to post
Share on other sites

https://community.bistudio.com/wiki/join

 

This lets a AI unit join the players group.

 

Ex.:

[_unitOne, _unitTwo] join (group player);

To the other thing. Triggers got conditions. Cache in a global varibale which mission the player is currently doing. Check in the trigger-activation if the global-var is the desired one.

Share this post


Link to post
Share on other sites

Where do i write this [_unitOne, _unitTwo] join (group player);?

My problem is that you always come back from mission to base to get another task, so i want to give player new units everytime not just once, i don't know how many he will lose so i dont know how many i should give him.

 

So i guess it's better to make squad where player is not in command, and he is only following them but how do i make.. (hard to explain) I finish task, then go back to base, get new one and trigger activate so when i will move there some group of soldiers will move out to next task and you can follow them, i dont want this trigger to be active before that, so player will make them go somewhere too soon.

Share this post


Link to post
Share on other sites

You would have to create new soldiers.

 

Use https://community.bistudio.com/wiki/createUnit or https://community.bistudio.com/wiki/createUnit_array for that purpose.

 

Let them join the global group the player is in.

 

 

After all you NEED to script that stuff in a sqf file in the missions folder.Its the easiest way to to if you dont want to handle thousands of triggers.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×