I would like to know a best practice in getting peds and set their relationship between some other random peds and tasks. I want to let a specific group of peds attack another group of already existing peds. I don't want to spwan new peds but use the peds that already exist. I would like to create two groups of relationship between those peds and set a task to fight against each other. I have tried it a year ago but the peds were attacking themself because I didn't know how to create two different groups, so the game recognize they need to attack another ped.
I was thinking about some code of
"foreach (Ped p in peds)
p.FightAgainst(? which ped goes here?)
But I don't know a best practice for it.
Any help is appreciated