I'm trying to change the player to a different unit type alltogether, in one smooth motion. I was trying:
player = "SoldierWPilot" createVehicle position player
This spawns a pilot beside me, and I don't become them. If there was going to be a problem, I was expecting I'd become the pilot, but my old self would remain. I recall having some strange respawning issues in multiplayer and having to do some strange things if I want to reassign the player to something else. Is there a trick to this? I also tried:
_something = "SoldierWPilot" createVehicle position player
player = format["%1", _something]