How Do I Turn Players Into Units?

tell me how do i do it?

create yourunit to yourplayer (normally trig player) on position (region or idk)
if you have a player type {
assign last created unit (or trig player) to your player type
}
make camera follow last created unit (or trig player)
done.

a projectile plsssss?