The players start out as a OPFOR motorized group. At first I want the OPFOR players to respawn to the group they belong to. Once the group is dead, however, I would like them to change side to Independent and cause havoc against the remaining OPFOR players and AI.

I tried to look for ways to change units playable during the game but it seems impossible. Any ideas?

Added 21 hours 35 minutes later:

Has anyone ever come across something like this?

Added 1 hour 40 minutes later:

Okay, here's what I tried. I put the respawn type to GROUP. Then I made onPlayerRespawn.sqf which has the following: