How to Dynamicaly change the Player Pawn.
Put this in your Player Controller. The example here is using an 'exec' function so it can be triggered from a button press or console command.
Put this in your Player Controller. The example here is using an 'exec' function so it can be triggered from a button press or console command.
exec function FPress()
{
//declare the variables
local pawn p;
local vector l;
local rotator r;
//set the variables
p = Pawn;
l = Pawn.Location;
r = Pawn.Rotation;
// get rid of the old pawn
UnPossess();
p.Destroy();
//spawn a new pawn and possess it
p = Spawn(class'SomePawnClass', , ,l,r);
//use false if you spawned a character and true for a vehicle
Possess(p, false);
}