Alright Im making an adventure for a game called The Punic Wars.
What im trying to do is, After im done with a conversation between 2 players, I want the person, and his army, to be set as player 1, just like me.
His name is Barnabas.
What ive done is:
- Which works, for 1 unit.. But since the army is made of 50 other people, i wouldnt sit and make that code 51 times.. Well I hope ya understand what i mean.Code:GetNamedObj("Barnabas").SetPlayer(1);
So i added them to the group " Barnabas_team"
Then tried:
- which did compile, but didnt work in test mode/or in game generally.Code:GetNamedObj("Barnabas_team").SetPlayer(1);
Any ideas ? :-)
Thanks!