Jump to content

Recommended Posts

 

Hello everyone!

So here is my problem:

 

Cooperative mission, four players and one AI hostage they must rescue...

Im using [hostage] join player1

 

But the main problem is that if player1 gets killed, I do not know how to make the others join their group, lets say if player1 and player2 both get killed, how do I make the hostage join player3 or player 4 group (which is the same)?

 

Share this post


Link to post
Share on other sites

Name the group.

[hostage] join playerGroupName;

 

Share this post


Link to post
Share on other sites

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

 

According to what you can read here, join is for having units join a group rather than a single unit, so instead of writing player1, you can give players' group a variable name like playerGroup and then run

[hostage] join playerGroup

In this case it won't matter how many members of that group are alive.

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

×