So I really just started with the editor like 4 days ago, and I've looked everywhere to see how to fix this. However if I missed a tutorial for this problem feel free to link it, and I apologize.
My problem is this, I'm trying to make it so when someone destroys another person custom building I created, they become allies and the person who got their build destroyed changes color and allies with all of the other persons allies as well. Do this until all people are allied. The thing is if someone else comes back and destroy someones custom building they have to leave their team that they were allies with and join the other person and ally with all their allies.
The way I did this was creating player groups for every player and adding them at the start. Then when someone destroys their custom building they leave their player group they are currently in and join another player group. However it's not working. I have to find the players group they are in, whatever group that is, and remove them from it, then add them to whatever players group killed their building. I thought the "Convert Player to Player Group" was the way to do this. I attached a screen shot to this post.
If you know any other way to do this let me know. Thanks in advance!
Someone may be able to help sooner, I'll have more time on Monday to go in depth with an answer (and probably will create a video to explain).
Some stuff that might help now, but may not since I'm unable to fully explain at the moment...
It would be better to create an empty player group array that is the size of the number of players, instead of a bunch of player groups.
"Convert player to player group" creates a brand new player group with one member, rather than finding what group a player is currently in. It's a more useful function when you want to do something with a single player, but the particular function affects player groups, rather than an individual player. For instance, I want to hide a menu for player 1, rather than all players.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
So I really just started with the editor like 4 days ago, and I've looked everywhere to see how to fix this. However if I missed a tutorial for this problem feel free to link it, and I apologize.
My problem is this, I'm trying to make it so when someone destroys another person custom building I created, they become allies and the person who got their build destroyed changes color and allies with all of the other persons allies as well. Do this until all people are allied. The thing is if someone else comes back and destroy someones custom building they have to leave their team that they were allies with and join the other person and ally with all their allies.
The way I did this was creating player groups for every player and adding them at the start. Then when someone destroys their custom building they leave their player group they are currently in and join another player group. However it's not working. I have to find the players group they are in, whatever group that is, and remove them from it, then add them to whatever players group killed their building. I thought the "Convert Player to Player Group" was the way to do this. I attached a screen shot to this post.
If you know any other way to do this let me know. Thanks in advance!
I have created a video to help explain better. Hope this helps
Someone may be able to help sooner, I'll have more time on Monday to go in depth with an answer (and probably will create a video to explain).
Some stuff that might help now, but may not since I'm unable to fully explain at the moment...
It would be better to create an empty player group array that is the size of the number of players, instead of a bunch of player groups.
"Convert player to player group" creates a brand new player group with one member, rather than finding what group a player is currently in. It's a more useful function when you want to do something with a single player, but the particular function affects player groups, rather than an individual player. For instance, I want to hide a menu for player 1, rather than all players.